Jump to content
Sign in to follow this  
lulajack

Change my background image for each page

Recommended Posts

lulajack

Hi there, I posted last week about left aligning my site and having a background image. See site here: http://deeptest.co.za/dekloof/ Furthermore, how would I define a different background image for each page? Any help would be really appreciated.

Share this post


Link to post
Share on other sites
kastelic
You can use the page id's with CSS like this: [code] .page-id-123 #site { background-image: url(YOUR-OTHER-IMAGE-URL) } .page-id-456 #site { background-image: url(YOUR-OTHER-IMAGE-URL) } .blog #site { background-image: url(YOUR-OTHER-IMAGE-URL) } .search #site { background-image: url(YOUR-OTHER-IMAGE-URL) } [/code] Check the body tag in the source for the page id or class you need.

Share this post


Link to post
Share on other sites
lulajack
Kastelic, that worked perfectly. Thanks so much for your help!

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

Sign in to follow this  

×