Skip to content

Instantly share code, notes, and snippets.

@shrunyan
Created June 25, 2013 18:25
Show Gist options
  • Save shrunyan/5860985 to your computer and use it in GitHub Desktop.
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
<?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