• Resolved kath001

    (@kath001)


    I would like to know the custom css code for changing the background colour for posts and pages. I somehow managed to change the posts but not the pages. Perhaps there is a full code for both?
    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Do you have a link to your site to check out? 🙂 (easier to help that way!)

    You’ll *probably* want something like this for the page background(s):

    #content, .site-content {
        background: rgba(0,0,0,0.5) !important;
    }

    With your colour choice in there, of course! It doesn’t look like they have the same class/id name to be the same code, but you can combine them (like above) by separating them with a comma to only write the colour out once 🙂

    Thread Starter kath001

    (@kath001)

    Thanks SomewhatRounded! I’ll send you the link to our site before we start messing around with things!

    There’s still lots to learn and do with this theme, as we deal with so many different themes for our various sites. It’s also great when we can get answers from members within the same day never mind the same hour!
    Thanks again.

    Our website: http://wacky.stkittsthegreat.com/

    Not a problem!

    The same code mentioned before should work:

    #content, .site-content {
        background: rgba(216, 255, 187, 0.8) !important;
        border: 1px solid #d8ffbb !important;
    }

    The first colour code with the rgba value (red,green,blue,alpha) is what will let it keep the semi-transparency, if you want it to be a solid colour, you can just use the #d8ffbb code 🙂

    And if you want to change the colour of those underlines for the footer to match, this will do the trick:

    #secondary h1.widget-title, #footer-sidebar h1.widget-title {
        box-shadow: 0 20px 0 -18px #d8ffbb;
    }

    Woo!

    Thread Starter kath001

    (@kath001)

    Woo! Now we’re talking!
    Not sure if I should start a new thread for this but how would you change the gray colour widgets/boxes also on the right and in the footer area, to another colour?
    Thanks so much!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changing background colour of post and pages’ is closed to new replies.