Jump to content
lshaull

Change background color on homepage only

Recommended Posts

lshaull    0
lshaull

How do I change only the body background color for my homepage? Are there unique identifiers for pages so I can add a style to a class or something like that?

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there,

 

You can use the page id to assign page specific css, place it before the css you're altering.

 

 

.page-id-x .foo {background:#ffffff;}

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×