Skip to content

Instantly share code, notes, and snippets.

@anneallen
Last active August 29, 2015 13:58
Show Gist options
  • Save anneallen/10340261 to your computer and use it in GitHub Desktop.
Save anneallen/10340261 to your computer and use it in GitHub Desktop.
Remove Genesis Post meta and Post info for all but standard posts
//Remove post-info and post meta for all but post
remove_action('genesis_entry_header', 'genesis_post_info',12);
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
add_action('genesis_entry_header', 'child_post_info',12);
function child_post_info(){
if (is_singular( 'post' ))
genesis_post_info();
}
add_action('genesis_entry_footer', 'child_post_meta');
function child_post_meta(){
if (is_singular( 'post' ))
genesis_post_meta();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment