Skip to content

Instantly share code, notes, and snippets.

@srikat
Created Jan 13, 2016
Embed
What would you like to do?
How to remove Footer Widgets on specific Pages in Genesis.
// Remove Footer Widget Areas on 'About' and 'Contact' Pages
add_action( 'genesis_after_content_sidebar_wrap', 'sk_footer_widget_areas' );
function sk_footer_widget_areas() {
if ( is_page( array( 'about', 'contact' ) ) ) {
remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment