0
Welcome Guest! Login
0 items Join Now

About Custom CSS + LESS file and cache

  • About Custom CSS + LESS file and cache

    Posted 11 years 4 months ago
    • hello

      Please 2 questions:

      1)

      I created a rt_afterburner2-custom.css file and I placed this file in public_html/templates/rt_afterburner2/css. Well I can now overrides some style without worry to loose my modification in case of update. I wondering now how to do for force browser to never cache this file OR to cache the file IF modification are detected.

      It is possible ?? I don't understand if my custom CSS is compiled (and then serve a new file if modification are detected) or not...

      2)

      I need to have a fixed template width of 1020px instead to use one of the default size provided in Gantry such 960px or 1200px. For do that I modified the original 1200fixed.less file and I changed related value with this one:
      width: 85px;
                }
                .rt-grid-2 {
                     width: 170px;
                }
                .rt-grid-3 {
                     width: 255px;
                }
                .rt-grid-4 {
                     width: 340px;
                }
                .rt-grid-5 {
                     width: 425px;
                }
                .rt-grid-6 {
                     width: 510px;
                }
                .rt-grid-7 {
                     width: 595px;
                }
                .rt-grid-8 {
                     width: 680px;
                }
                .rt-grid-9 {
                     width: 765px;
                }
                .rt-grid-10 {
                     width: 850px;
                }
                .rt-grid-11 {
                     width: 935px;
                }
                .rt-grid-12 {
                     width: 1020px;

      Then by selecting 1200FIXED Layout Mode in Gantry settings, I get well a fixed 1020px size. Now I seen on Gantry Docs is also possible to create a custom LESS file. So I'm supposed to create a 1200fixed-custom.less file with my modified code and keep the original 1200fixed.less file ???

      My goal is to be sure my custom CSS and LESS file will never be overwritten and never be cached.

      Please clarify in details...

      thank
  • Re: About Custom CSS + LESS file and cache

    Posted 11 years 4 months ago
    • any news please ?
  • Re: About Custom CSS + LESS file and cache

    Posted 11 years 4 months ago
    • Can I please have an answer?
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: About Custom CSS + LESS file and cache

    Posted 11 years 4 months ago
  • Re: About Custom CSS + LESS file and cache

    Posted 11 years 4 months ago
    • Your mean I'm supposed to clear Less Compiler cache + Gantry cache each time I made some change in my custom css and less file ? Please clarify...
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: About Custom CSS + LESS file and cache

    Posted 11 years 4 months ago
    • It's not always needed but I recommend you to clear those caches if you experience any "issues" if changes are not appearing on your site.

      Also, don't forget to clear your browser's cache.
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG

Time to create page: 0.057 seconds