0
Welcome Guest! Login
0 items Join Now

SOLVED [template]-custom.less not being included in compiled CSS

  • SOLVED [template]-custom.less not being included in compiled CSS

    Posted 8 years 6 months ago
    • I just discovered an issue with Gantry v4.1.29. When Joomla is installed in a subfolder of a root domain, rather than at the root domain, the [template]-custom.less is not being included in the compiled CSS.

      What have I done:
      1. [template]-custom.less correctly named and in the template's less folder - Check, templates/rt_paradigm/less/rt_paradigm-custom.less
      2. LESS cache cleared - Check, cleared from master paradigm template
      3. Verified [template]-custom.less is missing using debug header - Check, file not listed in compiled CSS debug header
      4. Verified that the file is included for the root domain case - Check [template]-custom.less is working on my live site in a root domain
      5. Actually using LESS and not CSS in the [template]-custom.less file - Check (see code below)
      .sprocket-icongrids-b .fa-inverse:hover { 
      	color: @main-accent2;
      }

      This is only seems to be an issue when the site is structured like this: [mydomain].com/[my subfolder where Joomla is installed]

      CSS debug header files list
      Included Files :
      /libraries/gantry/assets/jui/less/mixins.less
      /templates/rt_paradigm/less/variables.less
      /templates/rt_paradigm/less/mixins/index.less
      /templates/rt_paradigm/less/mixins/rockettheme/mixins.less
      /templates/rt_paradigm/less/mixins/rockettheme/utilities.less
      /templates/rt_paradigm/less/mixins/rockettheme/dropdowns.less
      /templates/rt_paradigm/less/mixins/rockettheme/popover.less
      /templates/rt_paradigm/less/mixins/rockettheme/buttons.less
      /templates/rt_paradigm/less/gantry-core.less
      /templates/rt_paradigm/less/joomla-core.less
      /templates/rt_paradigm/less/mainbody-light.less
      /libraries/gantry/assets/jui/less/font-awesome4/font-awesome.less
      /libraries/gantry/assets/jui/less/font-awesome4/variables.less
      /libraries/gantry/assets/jui/less/font-awesome4/mixins.less
      /libraries/gantry/assets/jui/less/font-awesome4/path.less
      /libraries/gantry/assets/jui/less/font-awesome4/core.less
      /libraries/gantry/assets/jui/less/font-awesome4/larger.less
      /libraries/gantry/assets/jui/less/font-awesome4/fixed-width.less
      /libraries/gantry/assets/jui/less/font-awesome4/list.less
      /libraries/gantry/assets/jui/less/font-awesome4/bordered-pulled.less
      /libraries/gantry/assets/jui/less/font-awesome4/animated.less
      /libraries/gantry/assets/jui/less/font-awesome4/rotated-flipped.less
      /libraries/gantry/assets/jui/less/font-awesome4/stacked.less
      /libraries/gantry/assets/jui/less/font-awesome4/icons.less
      /templates/rt_paradigm/less/utilities.less
      /templates/rt_paradigm/less/prettify.less
      /libraries/gantry/assets/jui/less/bootstrap-overrides.less
      /templates/rt_paradigm/less/template.less
      /templates/rt_paradigm/less/extensions.less
      /templates/rt_paradigm/less/demo.less
    • Last Edit: 8 years 6 months ago by jtechmedical. Reason: a Valid solution was provided
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED [template]-custom.less not being included in compiled CSS

    Posted 8 years 6 months ago
    • That's an incorrect filename - you append the -custom to the name of the less file that you are overriding. http://docs.gantry.org/gantry4/tutorials/adding-a-custom-stylesheet#custom-stylesheet-with-less

      Regards, Mark.
    • The following users have thanked you: jtechmedical

    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
  • Re: SOLVED [template]-custom.less not being included in compiled CSS

    Posted 8 years 6 months ago
    • Odd, [template]-custom.less seems to work in the root domain. But changing the file name format from [template]-custom.less to [LESS_FILE_NAME]-custom.less for example using template-custom.less does resolve the issue, so I guess that's the solution I needed.
    • Last Edit: 8 years 6 months ago by jtechmedical.

Time to create page: 0.040 seconds