Support » Themes and Templates » Change color of post/page content container

  • Resolved Evypoo


    Hi All,

    Apologies if this is a repost but I can’t seem to find a clear answer to my question. This may also be due to the theme I’m using (Swatch – wootheme).

    I am redesigning my site in WP:

    I haven’t made any child themes or custom page templates, I just want to know how to change the white background (I think it’s called the container) on posts and pages. It would be REALLY great if I could do this per page.

    I am pretty good at modifying code when I have clear instructions, but I have not had much exposure to CSS.

    Thank you in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Go to line 427 inside your style.css file and find this following batch of code:
    #main .page { padding: 30px; background: white; }

    Replace “white” with any color that you want. So for example, if you wanted your page color to be gray you would have:

    #main .page { padding: 30px; background: #ccc; }

    Is this what you were looking for?


    Thank you sir, you are a gentleman and a scholar.

    Any idea if it can be done with a different color for each page, for bonus points?

    Perhaps a plugin that is more flexible?

    I don’t know if there are any plugins that do that (you can look it up though). I am thinking of custom page templates, each one with a different class instead of “page”.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change color of post/page content container’ is closed to new replies.