Changing header text color

  • Author
    Posts
  • #2116530

    bayparknc
    Member

    I’m using the Goran theme on a site that is set to private.

    I’d like to be able to change the color of the page titles on a per page basis, so that they are easier to see against the header image of my site.

    Could someone help me with the CSS code I’ll need to accomplish this?

    Thank you!

    #2116667

    hallluke
    Member

    Here’s some example code:

    body.page-id-120 .page-title {
      color:#005050;
    }

    You will need to duplicate the rule and change the ID number to whatever is appropriate for each page on your site. You can find this by inspecting the page source code. You’ll want to look for the body element which should be towards the very top. It will be at the start of a long list of classes but isn’t too tricky to see.

The topic ‘Changing header text color’ is closed to new replies.