Problem changing body background colour of twenty-eleven theme

  • Author
    Posts
  • #1174836

    eleanorcave
    Member

    Hi,
    Have added the following code into CSS editor to change the page/post colour from white to cream, but it doesn’t work. Have I missed some step?

    I have saved the stylesheet and triple checked my CSS, and used red and other colours, but the theme page colour stays stubbornly white!

    body {
    background-color: #F8F2E8;
    }
    This is my first time using the CSS editor!

    The blog I need help with is www.stmaryschildcare.org.nz.

    #1174928

    supportbot
    Member

    The blog you specified at http://www.stmaryschildcare.org.nz does not appear to be hosted at WordPress.com.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

    #1174962

    This rule isn’t working because there’s a more specific CSS selector used by the blog which is overriding your rule:

    body {
    	background-color: #F8F2E8;
    }

    If you make yours match the one used on the blog, it will work:

    body.custom-background {
    	background-color: #F8F2E8;
    }

    You can view what CSS selectors are being used for a particular space by right-clicking on it in your browser and selecting the “Inspect Element” option. If you click on the body tag in the HTML that shows up, you should also see the CSS rules applied to that tag on the right. The web inspector in browser tools is really handy!

    Because your blog is not hosted here at WordPress.com, you should ask for help at http://wordpress.org/support/ if you have additional questions. See http://support.wordpress.com/com-vs-org/ to learn about the differences. Good luck!

The topic ‘Problem changing body background colour of twenty-eleven theme’ is closed to new replies.