Last active
April 5, 2017 17:46
-
-
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/
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
<?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