Trouble changing content background (5 posts)

  1. boliviagabe
    Posted 3 years ago #


    There's a ton of posts out there about changing the content area background color, but none seem to address this problem:

    I want to have different content background colors for different static pages. In the <body> section of my CSS, I added:

    body.page-id-2 {
    color: #hex;

    but that just changes the text color...

    background-color: #hex changes the exterior content color. Any idea what I'm doing wrong?

    Thanks so much!

  2. WPyogi
    Forum Moderator
    Posted 3 years ago #

    Your CSS selector is not specific to the section of the page you want to modify -- try using Firebug tool to work with CSS -- you can quickly and easily see which CSS selector you'd want to use for the new code.

    If you still need help, post a link to your site -- without seeing the page itself, it's almost impossible to help with things like this.

  3. boliviagabe
    Posted 3 years ago #

    Thanks for your fast response! The site is http://www.thaki-bolivia.com/en... so I want to change the content color of http://www.voyages-bolivie.com/en/thaki-team/ (for instance) to match the color of the logo in the top left.

    I'm downloading the firebug tool now, thanks for the suggestion. Is there a code that is specific to content background color?

  4. WPyogi
    Forum Moderator
    Posted 3 years ago #

    The class for the post backgrounds is .post-body -- line 1361 in style.css. So you could try as the selector .page-id-XX .post-body But I see that your theme is from Artisteer which creates tons of really weird, messy code -- so it may take a lot of fooling around with various selectors and margins and padding to get it to look right. You might want to post on the Artisteer forums -- as they understand how their themes are set up.

  5. boliviagabe
    Posted 3 years ago #

    Will do, thanks. Meantime, I'm having the same results in .post-body... that is,

    color: hex changes text color.

Topic Closed

This topic has been closed to new replies.

About this Topic