Skip to content

Instantly share code, notes, and snippets.

@hellofromtonya
Last active January 17, 2017 22:29
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 hellofromtonya/b9e8f0ab2bdfcae891a9976e26835ae4 to your computer and use it in GitHub Desktop.
Save hellofromtonya/b9e8f0ab2bdfcae891a9976e26835ae4 to your computer and use it in GitHub Desktop.
Strategy 4 - Remove the Genesis site footer for multiple pages
// put this function at the bottom of your theme's
// function.php file
add_action( 'genesis_before_footer', 'prefix_remove_site_footer_from_specific_pages' );
/**
* Remove the site footer from the specified pages.
*
* @since 1.0.0
*
* @return void
*/
function prefix_remove_site_footer_from_specific_pages() {
if ( ! is_home() || ! is_front_page() ) {
return;
}
//remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
//remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );
//remove_action( 'genesis_footer', 'genesis_do_footer' );
remove_all_actions( 'genesis_footer' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment