Archived

This topic is now archived and is closed to further replies.

  • 0

Change background color on homepage only

Question

Posted · Report post

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

2 answers to this question

Posted · Report post

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;}

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks James!

Share this post


Link to post
Share on other sites