Created
November 1, 2019 21:57
-
-
Save cre8tivediva/22a23ffe8d0a846654842e3a483f6685 to your computer and use it in GitHub Desktop.
Add a full width widget area before footer widgets in Magazine Pro
This file contains hidden or 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 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