0
Welcome Guest! Login
0 items Join Now

Remove rt-menu from in-line styles

    • Mr Toast's Avatar
    • Mr Toast
    • Sr. Rocketeer
    • Posts: 152
    • Thanks: 0
    • Wanderer, philanderer, occasional web monkey

    Remove rt-menu from in-line styles

    Posted 13 years 1 month ago
    • Hey how do I remove the in-line styling that gantry puts in the header for the #rt-menu element. At the moment I get this in the header,
      <style type="text/css">
           <!--
      body {background:#0a2843;}body a {color:#91141a;}#rt-header .rt-container {background:transparent;}#rt-bottom .rt-container {background:transparent;}#rt-footer .rt-container, #rt-copyright .rt-container, #rt-menu .rt-container {background:#fff;}
           -->
        </style>

      I need the rt-menu to be removed because I can't seem to override it with css, it keeps dominating whatever I put in my file.

      This is the current inserted code, I guess there is somewhere in the php i can take it out...

      Cheers
    • Cheers,
      Mr Toast says... keep toasting!
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Remove rt-menu from in-line styles

    Posted 13 years 1 month ago
    • just override that on a css-level by adding
      div#rt-menu div.rt-container {background:red;}
      for example ...

      but what you could also do is to override that on a gantry-level

      1. copy this file
      joomla-root/components/com_gantry/features/styledeclaration.php
      to the features folder of your template
      joomla-root/templates/rt_gantry_j15/features

      2. open that file and change this line
      $css .= '#rt-footer .rt-container, #rt-copyright .rt-container, #rt-menu .rt-container {background:'.$gantry->get('footercolor').';}';
      to
      $css .= '#rt-footer .rt-container, #rt-copyright .rt-container {background:'.$gantry->get('footercolor').';}';

      3. safe that and clear joomla+browser cache ...

      4. congrats you did you first gantry-override :-)

Time to create page: 0.046 seconds