Last active
January 4, 2020 05:02
-
-
Save braddalton/2acfbf92752e7e34a291d7d15a938f50 to your computer and use it in GitHub Desktop.
Step 1 - Add New Widget Area Before Footer Widgets In Genesis https://wpsites.net/web-design/add-new-widget-area-before-footer-widgets-in-genesis/#step-1
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
genesis_register_sidebar( array( | |
'id' => 'before-footer', | |
'name' => __( 'Before Footer' ), | |
) ); | |
add_action( 'genesis_before_footer', 'before_footer_widget_area', 5 ); | |
function before_footer_widget_area() { | |
genesis_widget_area( 'before-footer', array( | |
'before' => '<div class="before-footer"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment