Last active
December 22, 2015 03:08
-
-
Save bradpotter/6407952 to your computer and use it in GitHub Desktop.
Add Home Top widgetized area in front-page.php
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
//* Add Home Top widgetized area | |
add_action( 'genesis_after_header', 'minimum_home_top', 5 ); | |
function minimum_home_top() { | |
printf( '<div %s>', genesis_attr( 'home-top' ) ); | |
genesis_structural_wrap( 'home-top' ); | |
genesis_widget_area( 'home-top-full', array( | |
'before'=> '<div class="home-top-full widget-area">', | |
'after' => '</div>', | |
) ); | |
genesis_structural_wrap( 'home-top', 'close' ); | |
echo '</div>'; //* end .home-top | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment