Really new to css and php so I hope you guys can give me a hint.
I’m looking how to add a background, fixed image to the home page only.
Through the Appearance -> Background from WP I can do it for all site pages.
I’m checking in the style.css but I can’t find if there’s a specific spot already or where, and how, I can add one.
thanks
You can use the .home
selector, however it appears also on secondary pages somake sure you also use the .paged
selector. Example:
.home {
background:url(...);
}
.paged{
background:#FFF;
}
Worked like a charm! Thank you sir.
why wont it allow me to change the pages background color? the home page color code is working perfectly but when i use .paged code and try to use for example #d54e21 it wont work.
Daniel, where abouts should I be making the change you mention above, I’ve tried to use the stltesheet but with out success.
Cheers,
Ian
Try adding a !important after the rule.