Changing a call to show only on homepage
-
I have a banner that I only want to show on the homepage as well as a banner I want to show throughout the site and it is in a section that is the same throughout the site in my theme.
I created in my wordpress theme another section that is coded the same but with the different banner code:
topnavigation.php
topnavivationhome.phpI placed this code in the mainindextemplate.php
<?php if ( is_home() ) { include ('topnavigationhome.php'); } ?> <?php if ( is_links() || is_category() || is_archive() || is_page() || is_single() { include ('topnavigation.php'); } ?>
Which completely messes up my site and causes it not to load. Just wondering what the correct way to go about doing this? I am obviously doing something wrong.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Changing a call to show only on homepage’ is closed to new replies.