Created
January 13, 2016 14:17
-
-
Save srikat/b05a692c1dd8a323f639 to your computer and use it in GitHub Desktop.
How to remove Footer Widgets on specific Pages in Genesis.
This file contains 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
// 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