Skip to content

Instantly share code, notes, and snippets.

@nickdavis
Created February 11, 2015 21:05
Show Gist options
  • Save nickdavis/56ff8f9cdb7cbd417aed to your computer and use it in GitHub Desktop.
Save nickdavis/56ff8f9cdb7cbd417aed to your computer and use it in GitHub Desktop.
Remove blog section from homepage of Education Pro theme by StudioPress
<?php
// Add this to your functions.php file, excluding the opening <?php
add_action( 'wp_head', 'nd_remove_homepage_blog' );
// Remove blog section from homepage
function nd_remove_homepage_blog() {
if ( is_front_page() || is_home() ) {
remove_action( 'genesis_loop', 'genesis_do_loop' );
}
}
.home .site-inner {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment