Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Footer Widget Header Full Width Wrap
//do not add in opening php tag
* Add a Header Row above the 3 footer widgets in Genesis Theme
* @package Add a Header Row above the 3 footer widgets
* @author Neil Gee
* @link
* @copyright (c)2014, Neil Gee
add_action ( 'widgets_init','genesischild_footerwidgetheader' );
// Extra the Footer Header Widget Area.
function genesischild_footerwidgetheader() {
genesis_register_sidebar( array(
'id' => 'footerwidgetheader',
'name' => __( 'Footer Widget Header', 'genesis' ),
'description' => __( 'This is for the Footer Widget Headline', 'genesis' ),
) );
// Action set to a higher priority to fire before footer widgets.
add_action ( 'genesis_before_footer','genesischild_footerwidgetheader_position', 5);
// Position Footer Header Widget.
function genesischild_footerwidgetheader_position () {
echo '<div class="footerwidgetheader-container"><div class="wrap">';
genesis_widget_area ( 'footerwidgetheader' );
echo '</div></div>';

This comment has been minimized.

Copy link

@TheVishalSharma TheVishalSharma commented May 30, 2016

Good one. ^_^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment