Hide a Div tag on all but the home page
-
Hi, I am new to word press I have been doing a ton of searches and still not get any of the options I have found to work. So I am hoping someone can help me.
I would like to hide a specific div on all pages expect I want it to show on the home page.Any suggestions would be much appreciated here is what I have.
<? php function meteor_slideshow() { if (is_front_page() ) { ?>) <div id="meteor-slideshow"> <?php if ( is_front_page( 'meteor_slideshow' ) ) { meteor_slideshow( "MainSlideshow"); } ?> </div><?php } } ?>
CSS:
#meteor-slideshow {
background-color: #FFF;
border: medium solid #000;
margin-top: 15px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
width: 930px;
position: relative;
padding: 5px;
}
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Hide a Div tag on all but the home page’ is closed to new replies.