Skip to content

Instantly share code, notes, and snippets.

@braddalton
Created October 16, 2013 10:13
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 braddalton/1cd2793faf254e7905bb to your computer and use it in GitHub Desktop.
Save braddalton/1cd2793faf254e7905bb to your computer and use it in GitHub Desktop.
//* Register New Full Width widget area
genesis_register_sidebar( array(
'id' => 'new-footer',
'name' => __( 'New Footer', 'yippybebe' ),
'description' => __( 'This is the custom full width footer widget area', 'yippybebe' ),
) );
//* Hook widget to footer
add_action( 'genesis_footer', 'full_width_footer_widget' );
function full_width_footer_widget() {
if ( is_active_sidebar('new-footer') ) {
genesis_widget_area( 'new-footer', array(
'before'=> '<div class="new-footer widget-area">',
'after' => '</div>',
) );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment