-
-
Save braddalton/1cd2793faf254e7905bb to your computer and use it in GitHub Desktop.
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
//* 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