Skip to content

Instantly share code, notes, and snippets.

@jbalzar
Last active March 19, 2016 11:45
Show Gist options
  • Save jbalzar/c856685619986484253a to your computer and use it in GitHub Desktop.
Save jbalzar/c856685619986484253a to your computer and use it in GitHub Desktop.
Remove post in Genesis homepage
<?php
add_action ( 'get_header' , 'home_remove_post' );
function home_remove_post() {
if( is_home() || is_front_page() ) {
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment