Skip to content

Instantly share code, notes, and snippets.

@jamiejohnsonkc
Created August 13, 2018 02:55
Show Gist options
  • Save jamiejohnsonkc/1873917dc77a058585e65a357260e18f to your computer and use it in GitHub Desktop.
Save jamiejohnsonkc/1873917dc77a058585e65a357260e18f to your computer and use it in GitHub Desktop.
Conditional header tag, #php, #wordpress
if ( is_front_page() ) :
get_header( 'home' );
elseif ( is_page( 'About' ) ) :
get_header( 'about' );
else:
get_header();
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment