Last active
October 21, 2016 17:57
-
-
Save waynebcox/4fb218daed65ad22300b4a3a404e4648 to your computer and use it in GitHub Desktop.
[Genesis] Add full width widget area above footer widgets
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
//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