Created
January 21, 2013 13:11
-
-
Save jonbellah/4585923 to your computer and use it in GitHub Desktop.
Genesis Custom Header for Multiple Page Layouts and Templates
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
/** Custom header */ | |
remove_action('genesis_header', 'genesis_do_header'); | |
remove_action('genesis_header', 'genesis_header_markup_open', 5); | |
remove_action('genesis_header', 'genesis_header_markup_close', 15); | |
function child_custom_header() { | |
if (is_front_page()) { ?> | |
YOUR HTML HERE | |
<?php } | |
elseif (is_page() || is_search() || is_archive() || is_home()) { ?> | |
YOUR HTML HERE | |
<?php } | |
elseif (is_single()) { ?> | |
YOURHTML HERE | |
<?php }} | |
add_action('genesis_before', 'child_custom_header'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment