Skip to content

Instantly share code, notes, and snippets.

@iamkingsleyf
Created May 8, 2014 23:26
Show Gist options
  • Save iamkingsleyf/371b0d4fe2eae9993278 to your computer and use it in GitHub Desktop.
Save iamkingsleyf/371b0d4fe2eae9993278 to your computer and use it in GitHub Desktop.
Remove Genesis post meta from the homepage only
//* Remove entry meta in entry footer
add_action( 'genesis_before_entry', 'magazine_remove_entry_meta' );
function magazine_remove_entry_meta() {
//* Remove if not single post
if ( ! is_single() ) {
remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment