Support » Fixing WordPress » Trouble changing content background

  • Hi-

    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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    Thread Starter boliviagabe

    (@boliviagabe)

    Thanks for your fast response! The site is http://www.thaki-bolivia.com/en&#8230; 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?

    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.

    Thread Starter boliviagabe

    (@boliviagabe)

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

    color: hex changes text color.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Trouble changing content background’ is closed to new replies.