Can't change body background in Twenty Ten theme (8 posts)

  1. sargentscatr
    Posted 5 years ago #

    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

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 5 years ago #

    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

  3. Michael
    Part-Time Forum Moderator
    Posted 5 years ago #

    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.


  4. Peter_L
    Posted 5 years ago #

    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

  5. Peter_L
    Posted 5 years ago #

    edit: nevermind my reply, see other replies above

  6. sargentscatr
    Posted 5 years ago #

    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.

  7. sargentscatr
    Posted 5 years ago #

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

  8. sargentscatr
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic