0
Welcome Guest! Login
0 items Join Now

Change header background color only on home page

  • Change header background color only on home page

    Posted 12 years 5 months ago
    • Is there a way to change the background color of the header but only on the home page and not throughout the whole site?

      Here's a link to my site:
      jypseypictures.com/wip

      I want the header background to be black only on the home page and gray on all other pages.
    • Shazdeh's Avatar
    • Shazdeh
    • Elite Rocketeer
    • Posts: 4984
    • Thanks: 29

    Re: Change header background color only on home page

    Posted 12 years 5 months ago
    • You can use the body class to target the home page. Try this:
      body.menu-homepage #rt-header { background: #000; }

      Love the design BTW :)
    • Please don't PM unless requested ;)
      Consider using the custom stylesheet for all your CSS customizations: gantry-framework.org/documentation/wordp...custom_stylesheet.md .
      Please provide the URL to the issue.
      And please mark the thread as solved if the issue is resolved.

Time to create page: 0.074 seconds