Skip to content

Instantly share code, notes, and snippets.

@cre8tivediva
Created November 1, 2019 21:57
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 cre8tivediva/22a23ffe8d0a846654842e3a483f6685 to your computer and use it in GitHub Desktop.
Save cre8tivediva/22a23ffe8d0a846654842e3a483f6685 to your computer and use it in GitHub Desktop.
Add a full width widget area before footer widgets in Magazine Pro
//* Add a full width widget area before footer widgets in Magazine Pro
genesis_register_sidebar( array(
'id' => 'before-footer-widgets',
'name' => __( 'Before Footer Widgets', 'genesis' ),
'description' => __( 'This is the before footer widget.', 'themename' ),
) );
add_action( 'genesis_before_footer', 'c8d_before_footer_widget', 3 );
function c8d_before_footer_widget() {
genesis_widget_area( 'before-footer-widgets', array(
'before' => '<div class="before-footer-widgets widget-area">',
'after' => '</div>',
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment