Hide or show a div based on a page
Permalink
I've got a div with a background image that I'd like to only show on the home page. What php would I wrap to hide it from other pages.
Also, If I wanted to selectivly show it on some pages, what php if statement would i wrap the div with as well.
thanks.
Also, If I wanted to selectivly show it on some pages, what php if statement would i wrap the div with as well.
thanks.
thank you for that. I noticed some similar css for another div in my theme's css and it worked. I used this:
But I appreciate the lead on that and will try it as well. i need to learn to use attributes more.
thanks.
body.homepage #ribbon { position: absolute; width: 256px; height: 122px; top:150px; left: -25px; hidden; z-index: 1000; background: url(../img/liveit-2.png)}
But I appreciate the lead on that and will try it as well. i need to learn to use attributes more.
thanks.
Danny