Last active
August 29, 2015 14:06
-
-
Save renventura/771d2b2bb6744e8f60ec to your computer and use it in GitHub Desktop.
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
<?php //* Mind this opening php tag | |
//* Remove Post Info, Post Meta from CPT | |
add_action ( 'get_header', 'rv_cpt_remove_post_info_genesis' ); | |
function rv_cpt_remove_post_info_genesis() { | |
if ( 'post' !== get_post_type() ) { | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
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