WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Change color of post/page content container (5 posts)

  1. Evypoo
    Member
    Posted 2 years ago #

    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: http://www.chrisevansolutions.com/V2

    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!

  2. Ziv
    Member
    Posted 2 years ago #

    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?

  3. Evypoo
    Member
    Posted 2 years ago #

    Amazing!

    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?

  4. Evypoo
    Member
    Posted 2 years ago #

    Perhaps a plugin that is more flexible?

  5. Ziv
    Member
    Posted 2 years ago #

    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".

Topic Closed

This topic has been closed to new replies.

About this Topic