Created
June 25, 2013 18:25
-
-
Save shrunyan/5860985 to your computer and use it in GitHub Desktop.
Wordpress: Load different header based on the page your looking at. @source http://pastie.org/private/lnkpqeh4eyaguhdxn51w
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Header.php - Load individual header files based on view | |
if ( is_home() ) { | |
include(TEMPLATEPATH.'/header-index.php'); | |
} | |
else if ( is_single() ) { | |
include(TEMPLATEPATH.'/header-single.php'); | |
} | |
else { | |
include(TEMPLATEPATH.'/header-inner.php'); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment