Created
January 13, 2017 19:26
-
-
Save roborracle/fbf7f7afbf5224a7a63af4772c202963 to your computer and use it in GitHub Desktop.
Removing loop and markup from Genesis Framework home page
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
//Removing loop from home page and associated markup | |
function remove_homepage_content() { | |
if ( is_front_page() ) { | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' ); | |
add_filter( 'genesis_markup_site-inner', '__return_null' ); | |
add_filter( 'genesis_markup_content-sidebar-wrap_output', '__return_false' ); | |
add_filter( 'genesis_markup_content', '__return_null' ); | |
} | |
} | |
add_action( 'genesis_before','remove_homepage_content' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment