Changing background colour in TwentyTen Theme
-
Hi,
There’s been lots of queries about this before but they’ve not solved the challenge I have. I am learning about WordPress (Wp) style sheets. I am using a book called “WordPress for Dummies” by Lisa Sabin-Wilson. She uses the Wp 2010 theme as a work horse. On page 290 edition 3 (it’s OK I will explain) basically says go to style.css and change the following CSS selector statement….
body{
background: #f1f1f1;
}So I changed it to blue or #0000ff;
Nothing changes.
Yes I have noted to flush the cache; hit Ctrl-F5 etc etc; restarted my PC and used another browser but alas no change.Yes I know I can go to <Appearance><Background> and change the colour there for those that are about to pounce on me for doing something so basic.
To that end though I did do this and changed the color to blue (ie #0000ff under <Appearance><Background>. I saved this and checked to ensure this was the case when I “visited” the site (which by the way is set up on my local WAMP host. It was indeed blue and whenever I go into the <Appearance><Background> menu again & again afterward, it remains … you guessed it BLUE. Despite this, the background color statement in the 2010 style sheet (style.css) remains stubbornly #f1f1f1 as above (after I had reset it back to the default after the first edit attempt BTW).
That is it remains the default statement …
body{
background: #f1f1f1;
}So clearly the background color is not stored there.
Yes … I am prepared to believe that there is some over-riding style sheet or bit of PHP code somewhere that resets the color.
So to that end I did a global search in the entire WAMP directory which includes the WWW where the Wp themes etc are stored, for the string 0000ff or ‘#0000ff’ after I had changed the color via the <Appearance><Background> menu to blue (ie #0000ff). I have specifically looked at all the style sheets in the 2010 theme and searched for ‘0000ff’ BTW.
Can’t find it. Yes there are small java script files there that have this buried in the code but it’s not relevant to this (besides the ‘modification’ date has not changed anyway.) Where is this stored?? Is it stored in the SQL database or something and dragged in to some code elsewhere??
I would rather not have responses that say “just use the <Appearance><Background> menu cos it works. I am doing this as a learning exercise about tweaking themes OK?
Thanx
- The topic ‘Changing background colour in TwentyTen Theme’ is closed to new replies.