Skip to content

Instantly share code, notes, and snippets.

@bradpotter
Last active December 22, 2015 03:08
Show Gist options
  • Save bradpotter/6407952 to your computer and use it in GitHub Desktop.
Save bradpotter/6407952 to your computer and use it in GitHub Desktop.
Add Home Top widgetized area in front-page.php
//* 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