Created
May 8, 2014 23:26
-
-
Save iamkingsleyf/371b0d4fe2eae9993278 to your computer and use it in GitHub Desktop.
Remove Genesis post meta from the homepage only
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* 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