Last active
January 17, 2017 22:29
-
-
Save hellofromtonya/b9e8f0ab2bdfcae891a9976e26835ae4 to your computer and use it in GitHub Desktop.
Strategy 4 - Remove the Genesis site footer for multiple pages
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
// 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