Support » How-To and Troubleshooting » Can't change body background in Twenty Ten theme

Can't change body background in Twenty Ten theme

  • Not sure what happened. All was well a few months ago with my blog and then it seems with one of the previous WP updates, things got out of whack with my style sheet.

    I’ve been staring at the css for over an hour now and tried various methods of changing the body background color. Hoping someone with fresher eyes could take a look and be able to tell me where things are getting screwy.

    This is where I left off with it:

    /* =Global Elements
    ————————————————————– */</p>
    <p>/* Main global ‘theme’ and typographic styles */
    body {
    background-color: #9FA897;

    sargentsfinecatering if you want to look at the rest of the code

Viewing 7 replies - 1 through 7 (of 7 total)
  • twenty ten theme comes with a built in background switcher in the appearance menu….it isn’t set in the css anymore

    also, the code you posted above shows `</p>
    <p>` ?

    There should be no markup like that in a css file



    Forum Moderator

    twentyten has a ‘admin’ ‘appearance’ ‘background’ option, which is added as embedded style; this is at the moment:

    body { background-color: #2D1709; background-image: url('http://www.sargentsfinecatering.com/wp-content/uploads/2010/04/bgcolor.jpg'); background-repeat: repeat; background-position: top left; background-attachment: fixed; }

    there is probably a color option selected; go back into ‘admin’ ‘appearance’ ‘background’ and empty the ‘color’ field;
    or add your color code #9FA897 there.


    your background is set by internal css (css inside <style> tags within the head of your homepage),
    any settings in your external css are overridden by the internal css.

    solution: get rid of the internal css and set the background you want in style.css of your twenty-ten theme

    edit: nevermind my reply, see other replies above

    Ahhh…you know, I remember using that feature several months ago, but it’s been so long it completely slipped my mind. Thanks!

    Also the ‘<p> </p>’ isn’t in the css. Must have accidentally been stuck in my post.

    Hm. Spoke too soon. Using the built-in background changer in Admin> Appearance>Background is not changing the body color.

    Anyone have any idea why I can’t change the background color of the post body even using the theme’s background feature?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can't change body background in Twenty Ten theme’ is closed to new replies.
Skip to toolbar