Created
August 15, 2020 12:07
-
-
Save deeman/ebca0aa70c6a710954fecd5ae8c268cd to your computer and use it in GitHub Desktop.
Genesis Framework - Widget Areas Before Footer
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
// Step-1: Create Extra Widget Area | |
genesis_register_sidebar( array( | |
'id' => 'beforefooterarea', | |
'name' => __( 'Before_Footer_Area', 'child theme' ), | |
'description' => __( 'This is Before Footer Widget Headline...', 'child theme' ), | |
) ); | |
// Step-2: Position Widget Header - Place widget before Widget area | |
add_action ('genesis_before_footer','before_footer_area', 5); | |
function crunchify_before_footer_area () { | |
genesis_widget_area( 'BeforeFooterArea', array( | |
'before' => '<div class="content-before-footer" id="beforefooter">', | |
'after' => '</div>', | |
) ); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment