-
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
February 9, 2016 at 9:50 pm #880273In the "uber" folder there is an "acm" folder. It has all sorts of folders inside itself like accordion, bar, book etc..
Each of these folders contain:
- CSS
- JS
- LESS
- TMPL
- config.xml
In the past, when using custom styles, I always duplicated a style inside "uber/acm/[name-of-the-ACM-folder]/tmpl (.php and .xml and rename them) and in "uber/acm/[name-of-the-ACM-folder]/less" (and .less rename that to the same name as the .php and .xml file)
Question 1: Is this the way to go? or do I need to do the next…
when I open "uber/local/acm/[name-of-the-ACM-folder]/, it only contains a css folder. Do I have to copy all folders inside "uber/acm/? Or can I only copy my own "style.php", "style.xml" to the "local/acm/[name-of-the-ACM-folder]/tmpl" folder and the style.less to the "local/acm/[name-of-the-ACM-folder]/less" folder.
www.creaktor.com
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 10, 2016 at 1:33 am #880311Hi
in the local folder there is only css style files are found when u compile less to css an override is created there . If your modifications are only in the style u do not need to add other files .Creaktor Branding Agency FriendCreaktor Branding Agency
- Join date:
- May 2012
- Posts:
- 256
- Downloads:
- 56
- Uploads:
- 30
- Thanks:
- 31
- Thanked:
- 2 times in 2 posts
February 10, 2016 at 2:54 am #880366So to make my own styles, I do not copy files to the local folder, but place them outside the local folder?
www.creaktor.com
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 10, 2016 at 3:06 am #880385Hi
If your modifications are only in the style u do not need to add other files .
You need to place css files in acm folder . Like this : /local/acm/cssCreaktor Branding Agency FriendCreaktor Branding Agency
- Join date:
- May 2012
- Posts:
- 256
- Downloads:
- 56
- Uploads:
- 30
- Thanks:
- 31
- Thanked:
- 2 times in 2 posts
February 15, 2016 at 9:38 am #883343I don’t understand what you mean. In my eyes you are refering to css. I mean. What steps do I take when I want to make my own styles for s specific acm block? work local or not?
Untill now I worked in "uber/acm/[name-of-the-ACM-folder]" and I use custom names to prevent override from updates.
style-accessvirus1.php
style-accessvirus1.xml
style-accessvirus1.lessOR do I need to work local? IS it even possible to work locally with own style file structures?
www.creaktor.com
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 15, 2016 at 9:47 am #883356Hi
local folder is an override of the template folder itself , so in case u added a new style in /local/acm/tmpl/xyz.php and other files as in your example. They should be present in the "uber/acm folder of the template .
You can create override in /local folder but for this you should have same file present in uber/acm folder .
let me know if there is any confusion .Creaktor Branding Agency FriendCreaktor Branding Agency
- Join date:
- May 2012
- Posts:
- 256
- Downloads:
- 56
- Uploads:
- 30
- Thanks:
- 31
- Thanked:
- 2 times in 2 posts
February 15, 2016 at 9:53 am #883360ahaaaa thanks! that sounds logic! So in short. When I have a copy of style-3, I can override it locally, but it has to stay style-3 to be able to be picked up.
So if I want a custom name, I can’t work locally because it is non existing at the non-local place.
got it!
www.creaktor.com
Creaktor Branding Agency FriendCreaktor Branding Agency
- Join date:
- May 2012
- Posts:
- 256
- Downloads:
- 56
- Uploads:
- 30
- Thanks:
- 31
- Thanked:
- 2 times in 2 posts
February 17, 2016 at 12:06 pm #885246Pankaj, when using style-1 for the HERO acm module, it does not have an own style-1.less. It only uses the style.less file.
- I copied the style-1.xml and style-1.php, but there is no style-1.less. There is only a basic style.less file. Now the last lines of that file imports all the other less files. Of course they only work when being used by corresponsing style used as a class, since the style.less files each use their own name as that class inside the corresponding php file. Since there is no seperate style-1.less for style-1, I need to add my own @import style-accessvirus1.less which will be overriden when updated the template. Can you guys fix this in an update so that every style existing has it’s own file or make an separate overide.less file which is empty so I can use override.less inside the local folder?
What is best to do? Skip using custom stle names and just override them local?
www.creaktor.com
Creaktor Branding Agency FriendCreaktor Branding Agency
- Join date:
- May 2012
- Posts:
- 256
- Downloads:
- 56
- Uploads:
- 30
- Thanks:
- 31
- Thanked:
- 2 times in 2 posts
February 17, 2016 at 12:23 pm #885253I tried the following but it does not work:
- copy the acm/hero folder to my desktop.
- I go into the local/acmhero folder and make a "less" folder.
- inside this folder I drag style.less and override some params, but it does not work.
www.creaktor.com
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 17, 2016 at 2:51 pm #885515Hi
I suggest you to use custom.css file to override the style . It can not be effected when u update the template and compile Less to css . Less files are core files and work at original place . Also these are override on template update . Either u can customize style from local folder css file or use custom.css .Creaktor Branding Agency FriendCreaktor Branding Agency
- Join date:
- May 2012
- Posts:
- 256
- Downloads:
- 56
- Uploads:
- 30
- Thanks:
- 31
- Thanked:
- 2 times in 2 posts
February 17, 2016 at 7:11 pm #885714I understand what you mean, but where can I find the file custom.css? Inside the local/acm/hero/css folder, or any other acm module, is only a style.css file. Changing that wont affect anything.
Can’t I just use a custom template.less file inside the local/less folder?
www.creaktor.com
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 18, 2016 at 2:07 am #885912Hi
I am mean override the style CSS files in the local folder /acm , Less files are core files and override when u update the template .
With Custom.css file u can define new css style code or override the previous codes in template .
Path : /templates/Uber/css/custom.css If file is not there create it. -
AuthorPosts
This topic contains 11 replies, has 2 voices, and was last updated by Pankaj Sharma 8 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum