Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save idavinder/9511065 to your computer and use it in GitHub Desktop.
Save idavinder/9511065 to your computer and use it in GitHub Desktop.
Remove post meta, info, content from Genesis Homepage
//* Remove the post content & post meta (http://www.basicwp.com/remove-post-meta-info-contents-genesis)
add_action('template_redirect', 'child_conditional_actions');
function child_conditional_actions() {
if( !is_singular() ) {
remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment