Last active
April 16, 2019 14:06
-
-
Save leepettijohn/3c5a61d145c6ee64201d to your computer and use it in GitHub Desktop.
Removing Meta Info
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_before_loop','remove_info'); | |
function remove_info(){ | |
if (in_category(ADD_CATEGORY_NUMBER_HERE)){ | |
//This removes the author, date, etc. at the top of the post | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
//This removes the categories and tags at the bottom of the post | |
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