Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
add footer full width widget to a specific page in Genesis
//Extra Widget Area for resources page
function genesischild_footerwidgetheader() {
genesis_register_sidebar( array(
'id' => 'footerwidgetheader',
'name' => __( 'Footer Widget Header', 'genesis' ),
'description' => __( 'This is for the Footer Widget Headline', 'genesis' ),
) );
}
add_action ('widgets_init','genesischild_footerwidgetheader');
//* Add the page widget in the content - HTML5
add_action ('genesis_before_footer','genesischild_footerwidgetheader_position', 5 );
function genesischild_footerwidgetheader_position () {
if ( is_page('19') ) {
echo '<div class="footerwidgetheader-container"><div class="wrap">';
genesis_widget_area ('footerwidgetheader');
echo '</div></div>';
}
}
@neilgee

This comment has been minimized.

Copy link

commented Jul 8, 2015

Since the id is an integer should be

is_page(19)

without the quotes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.