I'm trying to use the if_home function inside our header.php file for a wordpress website. But its giving me problem. What may be the reason? The code <?php if (is_home() ) { <div id="optinsect"> <div id="opt-in"> } ?> </div></div> Thanks in advance Ok. Great. I figured this out.. <?php if ( is_home() ) { ?> <div id="optinsect"> <div id="opt-in"> <!-- html goes here --> </div></div> <?php } ?>