Skip to content

Instantly share code, notes, and snippets.

@deeman
Created August 15, 2020 12:07
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 deeman/ebca0aa70c6a710954fecd5ae8c268cd to your computer and use it in GitHub Desktop.
Save deeman/ebca0aa70c6a710954fecd5ae8c268cd to your computer and use it in GitHub Desktop.
Genesis Framework - Widget Areas Before Footer
// 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