Skip to content

Instantly share code, notes, and snippets.

@waynebcox
Last active October 21, 2016 17:57
Show Gist options
  • Save waynebcox/4fb218daed65ad22300b4a3a404e4648 to your computer and use it in GitHub Desktop.
Save waynebcox/4fb218daed65ad22300b4a3a404e4648 to your computer and use it in GitHub Desktop.
[Genesis] Add full width widget area above footer widgets
//Bottom CTA Band
function genesischild_bottomfw() {
genesis_register_sidebar( array(
'id' => 'bottomfw',
'name' => __( 'Bottom CTA Band', 'genesis' ),
'description' => __( 'This is a full width band on internal pages', 'genesis' ),
) );
}
add_action ('widgets_init','genesischild_bottomfw');
//Position Bottom CTA Band
function genesischild_bottomfw_position () {
echo '<div class="bottom-cta-band"><div class="wrap">';
genesis_widget_area ('bottomfw');
echo '</div></div>';
}
add_action ('genesis_before_footer','genesischild_bottomfw_position', 5 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment