Last active
June 17, 2019 13:48
-
-
Save srikat/11210887 to your computer and use it in GitHub Desktop.
How to remove Post Meta from Entry Footer in Genesis.
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
add_action( 'genesis_entry_content', 'sk_remove_post_meta' ); | |
/** | |
* Remove Post Meta in Entry Footer site-wide excerpt on static Pages. | |
* | |
* @author Sridhar Katakam | |
* @link http://sridharkatakam.com/remove-post-meta-entry-footer-genesis/ | |
*/ | |
function sk_remove_post_meta() { | |
if ( is_singular( 'page' ) ) { | |
return; | |
} | |
remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 ); | |
remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 ); | |
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