Created
February 22, 2015 00:33
-
-
Save arkadiusjonczek/36a9062f717e594a4812 to your computer and use it in GitHub Desktop.
WordPress: Remove content on front 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
// insert into functions.php | |
add_action( 'genesis_before','remove_homepage_content' ); | |
function remove_homepage_content() { | |
if (is_front_page() ) { | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment