-
AuthorPosts
-
Creaktor Branding Agency Friend
Creaktor Branding Agency
- Join date:
- May 2012
- Posts:
- 256
- Downloads:
- 56
- Uploads:
- 30
- Thanks:
- 31
- Thanked:
- 2 times in 2 posts
March 21, 2016 at 4:06 pm #902954Hi,
I am changing the template/acm/footer/style2.php and .xml file into my own stylename.
When I open the XML and change…
<option value="light-color">LIGHT_COLOR
into…
<option value="custom-color">CUSTOM_COLOR
The backend shows "CUSTOM_COLOR" into the dropdown field instead of lower case "custom color".
Why is it that LIGHT_COLOR has a lower case and a custom own name does not? Where is this variable or so being corresponding with? Language file? Less file?
www.creaktor.com
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
March 21, 2016 at 6:39 pm #902982Hi
You can find translations in this file /language/en-GB/en-GB.tpl_uber.ini
; Footer FOOTER_BACKGROUND_LABEL ="Footer Theme" FOOTER_BACKGROUND_DESC ="Select theme color for Footer of the template style" DARK_COLOR ="Dark Color" LIGHT_COLOR ="Light Color" HIGHLIGHT_COLOR ="Highlight Color" ENABLE_STICKY_LABEL ="Enable Sticky" ENABLE_STICKY_DESC ="Select Yes to make the content block sticky" BLACK_COLOR ="Black Color"
Best regards
Creaktor Branding Agency FriendCreaktor Branding Agency
- Join date:
- May 2012
- Posts:
- 256
- Downloads:
- 56
- Uploads:
- 30
- Thanks:
- 31
- Thanked:
- 2 times in 2 posts
March 21, 2016 at 8:21 pm #903012Ok thanks!. O, by the way. If I would want to use template/acm/footer/less/style2.less and copy/paste/rename it to custom.less, (asuming that the xml and php files are called custom as well), does that custom.less file automatically been picked up/hooked to the php and xml? If not where and how are those 3 files linked to each other?
I was thinking about to maybe just put in an @import link from this custom.less file pointing to a local less file in templates/local/less/footer.less for my local less editing to keep an overview of all styling in the local less folder.
www.creaktor.com
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
March 21, 2016 at 8:41 pm #903015I was thinking about to maybe just put in an @import link from this custom.less file pointing to a local less file in templates/local/less/footer.less
That’s a good solution and it should work fine
Best regards
Creaktor Branding Agency FriendCreaktor Branding Agency
- Join date:
- May 2012
- Posts:
- 256
- Downloads:
- 56
- Uploads:
- 30
- Thanks:
- 31
- Thanked:
- 2 times in 2 posts
March 26, 2016 at 2:49 pm #904956Hi pvit, I cannot get it to work.
my actions:
goto template/acm/header/less:
copy/rename style-7.less to style-7-custom.lessgoto template/acm/header/tmpl:
copy/rename style-7.php to style-7-custom.php
copy/rename style-7.xml to style-7-custom.xmlChange content of style-7-custom.less
.uber-header { &.header-7{
to
.uber-header { &.header-7-custom {
Change content of style-7-custom.php
<header id ="uber-header-<?php echo $module->id; ?>" class="wrap uber-header header-7 light-color">
to
<header id ="uber-header-<?php echo $module->id; ?>" class="wrap uber-header header-7-custom light-color">
Change content of style-7-custom.xml
<title>Header Style 7</title>
to
<title>Header Style 7 Custom</title>
and
{":type":"uber:header","header":{"jatools-layout-header":"style-7","header[header-background]":["dark-color"],
to
{":type":"uber:header","header":{"jatools-layout-header":"style-7-custom","header[header-background]":["dark-color"],
Change module name of ACM Module
style-7
to
style-7-custom
Without changing any less data yet, the refresh result before and after is not the same. This means that the style-7-custom.less is not recognized.
Questions:
- Why is this the less file not reflecting the exact same way the rest of the less files work?
- Is there maybe another file where al those less files also need to be put in to fix this? And if this is the case, is this safe to use when updating the website?
www.creaktor.com
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
-
AuthorPosts
This topic contains 5 replies, has 2 voices, and was last updated by pavit 8 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum