Jump to content


Photo

Change background color on homepage only


Best Answer James B , 03 January 2013 - 03:12 AM

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;}
Go to the full post


  • Please log in to reply
2 replies to this topic

#1 lshaull

lshaull

    Member

  • Members
  • 12 posts
  • Country: Country Flag

Posted 03 January 2013 - 02:28 AM

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?



#2 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 03 January 2013 - 03:12 AM   Best Answer

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


#3 lshaull

lshaull

    Member

  • Members
  • 12 posts
  • Country: Country Flag

Posted 03 January 2013 - 02:09 PM

Thanks James!