0
Welcome Guest! Login
1 items / $24.00 Checkout

SOLVED Disable template colour settings

  • SOLVED Disable template colour settings

    Posted 12 years 9 months ago
    • I've just started my first Gantry build, and I was wondering if it is possible to completely disable the colour settings configured on the Joomla template page so I can just use css. At the moment I'm overriding the values by putting them in template.css and using !important, but there must be a better way?
    • Last Edit: 12 years 9 months ago by Alex G Rees.
    • Freshpage Web Design
    • cdavis411's Avatar
    • cdavis411
    • Preeminent Rocketeer
    • Posts: 17787
    • Thanks: 882

    Re: SOLVED Disable template colour settings

    Posted 12 years 9 months ago
    • in the templateDetails.xml file remove this:
             <param name="bgcolor" type="colorchooser" default="#dddddd" label="BG_COLOR" description="BG_COLOR_DESC" />
              
              <param name="headercolor" type="colorchooser" default="#111111" label="HEADER_COLOR" description="HEADER_COLOR_DESC" />
              
              <param name="bottomcolor" type="colorchooser" default="#111111" label="BOTTOM_COLOR" description="BOTTOM_COLOR_DESC" />
              
              <param name="footercolor" type="colorchooser" default="#666666" label="FOOTER_COLOR" description="FOOTER_COLOR_DESC" />
              
              <param name="linkcolor" type="colorchooser" default="#cc0000" label="LINK_COLOR" description="LINK_COLOR_DESC" />
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED Disable template colour settings

    Posted 12 years 9 months ago
    • you should also copy the styledeclaration.php from com_gantry/features (in J1.5) into the features folder of your template and change that to something you like. For example you can uncomment
      $gantry->addInlineStyle($css);
      like this
      // $gantry->addInlineStyle($css);
      so the values are not added as css to the head tag of your template ...

      (btw. in J1.6 that path would be libraries/gantry/features/styledeclaration.php)
    • cdavis411's Avatar
    • cdavis411
    • Preeminent Rocketeer
    • Posts: 17787
    • Thanks: 882

    Re: SOLVED Disable template colour settings

    Posted 12 years 9 months ago
    • If this solved your issue, please mark the subject of your original post [SOLVED].
  • Re: SOLVED Disable template colour settings

    Posted 12 years 9 months ago
    • cdavis411's Avatar
    • cdavis411
    • Preeminent Rocketeer
    • Posts: 17787
    • Thanks: 882

    Re: SOLVED Disable template colour settings

    Posted 12 years 9 months ago
    • Glad to be of service. See you around the board :)

      This thread is locked from further comments. Please start a new topic if you have a similar issue that you need help with.

Time to create page: 0.037 seconds