-
AuthorPosts
-
designorama Friend
designorama
- Join date:
- June 2011
- Posts:
- 26
- Downloads:
- 37
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
September 5, 2013 at 1:14 am #190310I’m a bit puzzled and would prefer to have a quick question instead of spending a few hours (that I don’t have at the moment).
Is there a process involved in order to get out of Development mode?
As soon as I do that all changes that I’ve done on LESS files in the Dev folder are gone.What is the role of the “Compile LESS to CSS” button?
Thanks all,
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 5, 2013 at 6:46 am #504651Hi designorama,
When you click Compile Less to Css button, all css parameters of .less files including your changes will be compiled to the corresponding .css files, so that your modifications will be effective on the front-end.
designorama Frienddesignorama
- Join date:
- June 2011
- Posts:
- 26
- Downloads:
- 37
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
September 5, 2013 at 11:08 pm #504775Thanks Leo.
I tried that but I noticed that not all modified files are updated after the Compiled LESS to CSS process. For example file style.css isn’t updated causing the site to break when I disable Development mode.At first I thought that might had to do with permission settings for individual files but I checked and style.css has same permissions as the files that are updated ok.
Scratching my head here!!!
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 6, 2013 at 3:01 am #504795Hi designorama,
The .less fille will be only automatically compiled to .css file whenever you enable the Development Mode, if not, you will need to click Compile less to css button each time after updating the .less files.
In addition, the Compiling process in our T3 framework always lasts 15s-30s to finish basing on the updated .less files and user’s hosting performance. So that, i suggest you to increase the max_execution_time to make sure the process was done successfully without canceling.
manuelreil Friendmanuelreil
- Join date:
- February 2010
- Posts:
- 25
- Downloads:
- 7
- Uploads:
- 0
- Thanks:
- 8
- Thanked:
- 4 times in 1 posts
December 17, 2013 at 7:00 pm #515763Hi,
I have a similar problem. When I am switching development off, my custom less specifications in the theme folder (I made them in the existing files template.less and variables.less), they are not reflected in the live site.
When I am switching back, everything is alright.
Write access for t3-asses is granted. I have the feeling that those less files are not considered during the compile run.Thank you for helping me out.
Manuelphong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
December 18, 2013 at 1:35 am #515788Hi Manuel,
When you turn on the Dev mode, the template will temporarily display the layout styles from the less css files (i.e /t3-assets/dev/templates.ja_brisk.less.navigation.less.css file).
If you want the template to load the styles inside .css files, you need to compile Less to Css in Template Manager after turning off the Dev mode.
manuelreil Friendmanuelreil
- Join date:
- February 2010
- Posts:
- 25
- Downloads:
- 7
- Uploads:
- 0
- Thanks:
- 8
- Thanked:
- 4 times in 1 posts
December 18, 2013 at 8:28 pm #515901Thank you for the quick reply. Did that, 2 css files were created in t3-assets/css. But my changes in the variables.less files of the 2 themes I am using in this site are not included. I did simple test: I have larger logo image for which I had to increase the width of .logo-image from 80px (original) to 200px. Every logo-image in the created css files have a width of 80px specified.
Can it be that these files are not considered.
Was it wrong to put my customizations into /templates/ja_brisk/less/themes/default_orange/variables.css (and a second variables.css) in another theme?Thank you,
Manuelphong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
December 19, 2013 at 2:07 am #515918Hi Manuel,
I just want to repeat again that you need to do:
– Turn off the Development Mode.
– Click on Compile Less to Css button in Template Manager and Save the template style after the compiling process finishes.
Note: When you click Compile Less to Css, all .less files (even inside themes) will be automatically compiled to the corresponding .css files. By this ways, your modifications (i.e logo) will be effective on front-end after turning off the Dev mode.
manuelreil Friendmanuelreil
- Join date:
- February 2010
- Posts:
- 25
- Downloads:
- 7
- Uploads:
- 0
- Thanks:
- 8
- Thanked:
- 4 times in 1 posts
December 19, 2013 at 3:09 pm #515967This was clear to me, but is not working in this case. I will provide you an user account on the dev system so that you can really see what I mean.
manuelreil Friendmanuelreil
- Join date:
- February 2010
- Posts:
- 25
- Downloads:
- 7
- Uploads:
- 0
- Thanks:
- 8
- Thanked:
- 4 times in 1 posts
December 19, 2013 at 6:32 pm #515988Solved it by a workaround: I compiled the css out of the less files from my dev site and copied the resulting css files over to the prod site. Working, but strange as I am not aware of any difference between dev and prod.
Thank you for your help,
Manuel1 user says Thank You to manuelreil for this useful post
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
December 20, 2013 at 2:09 am #516010Hi Manuel,
That is great. The strange is related to the configuration of your remote server that sometimes causes the compiling less process of our T3 plugin not complete correctly.
There are some JA members experienced the same issue with compiling less on remote server. In this case, we always suggest them to try on 2 solutions:
– Try to increase the max_execution_time to at least 300 so the compiling process can perform better.
– Compiling the .less files on localhost and upload back to remote server.
-
AuthorPosts
This topic contains 11 replies, has 3 voices, and was last updated by phong nam 10 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum