Skip to content

Instantly share code, notes, and snippets.

@srikat
Created January 13, 2016 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srikat/b05a692c1dd8a323f639 to your computer and use it in GitHub Desktop.
Save srikat/b05a692c1dd8a323f639 to your computer and use it in GitHub Desktop.
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