Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Removing loop and markup from Genesis Framework home page
//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
You can’t perform that action at this time.