Skip to content

Instantly share code, notes, and snippets.

@drezac
Created February 15, 2014 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drezac/f6915cb24202d04dc3a5 to your computer and use it in GitHub Desktop.
Save drezac/f6915cb24202d04dc3a5 to your computer and use it in GitHub Desktop.
Genesis functions
/** Move Header and create full width header background **/
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 custom_header() {
?>
<div id="header-area">
<div class="wrap">
<header class="site-header" itemtype="http://schema.org/WPHeader" itemscope="itemscope" role="banner">
<?php genesis_do_header(); ?>
</header><!-- end .site-header -->
<?php genesis_do_nav(); ?>
</div><!-- end .wrap -->
</div><!-- end #header-area -->
<?php }
add_action('genesis_before', 'custom_header', 10);
/** Add support for custom header */
add_theme_support( 'genesis-custom-header', array(
'width' => 625,
'height' => 100
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment