Last active
August 29, 2015 13:58
-
-
Save anneallen/10340261 to your computer and use it in GitHub Desktop.
Remove Genesis Post meta and Post info for all but standard posts
This file contains hidden or 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 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