help using is_front_page
-
Hello guys, I’m totally new at php so here’s a straightforward question:
I am trying to hide some things on my static home page, the site title and the navigation bar and the footer/colofon. I think I should use the php conditional tag is_front_page for this, like so:
<?php if( is_front_page() ) { ?>
do something
<?php } ?>But:
– Where do I put this code? in the header.php and footer.php? or in the style.css? At which location in those files?
– What exactly do I put in the place of ‘do something’ is it css code? What is the syntax?Thanks,
Bastienne
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘help using is_front_page’ is closed to new replies.