Skip to content

Instantly share code, notes, and snippets.

@srikat
Created December 17, 2013 01:54
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srikat/7998655 to your computer and use it in GitHub Desktop.
Save srikat/7998655 to your computer and use it in GitHub Desktop.
Showing Footer Widget Areas only on homepage in Education theme. http://sridharkatakam.com/show-footer-widget-areas-homepage-education-theme/
// Show Footer Widget Areas only on homepage
add_action( 'genesis_after_content_sidebar_wrap', 'sk_footer_widget_areas' );
function sk_footer_widget_areas() {
if ( is_home() || is_front_page() )
return;
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