Skip to content

Instantly share code, notes, and snippets.

@jonbellah
Created January 21, 2013 13:11
Show Gist options
  • Save jonbellah/4585923 to your computer and use it in GitHub Desktop.
Save jonbellah/4585923 to your computer and use it in GitHub Desktop.
Genesis Custom Header for Multiple Page Layouts and Templates
/** 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