Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active April 5, 2017 17:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srikat/7e154ac3749dd7833051 to your computer and use it in GitHub Desktop.
Save srikat/7e154ac3749dd7833051 to your computer and use it in GitHub Desktop.
How to add a container above the wrap inside Header in Genesis. http://sridharkatakam.com/add-container-headers-wrap-genesis/
<?php
//* Do NOT include the opening php tag
// Remove 'header' from structural wrap
add_theme_support( 'genesis-structural-wraps', array(
'nav',
'subnav',
'site-inner',
'footer-widgets',
'footer'
) );
add_action( 'genesis_header', 'opening_header_divs', 9 );
function opening_header_divs() {
echo '<div class="wrap-container"><div class="wrap">';
}
add_action( 'genesis_header', 'closing_header_divs' );
function closing_header_divs() {
echo '</div></div>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment