View Full Version : i don't know how to do this...
jess
February 23rd, 2006, 03:35
i only want a div class to be on the main page, but not the others and i'm not quite sure how to do it. i'm looking over at some of the "if"'s and while I know what they do, I don't really know how to do it. Here's the part I want to be only on the main page:
< div class = "below">
JohnW.
February 23rd, 2006, 04:20
If you place it in index.php it should only show up on the main page.
jess
February 23rd, 2006, 06:43
Thanks John. It worked.
Colin
February 23rd, 2006, 06:17
<?php if(is_home()) { ?> <div class="below"> <?php } ?>
(CODE WITHIN BELOW HERE!)
<?php if(is_home()) { ?> </div> <?php } ?>
Alternative if necessary.
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.