Last active
January 18, 2018 03:51
-
-
Save braddalton/e5246526af5cddaa0b78 to your computer and use it in GitHub Desktop.
Custom Genesis Category Template https://wpsites.net/web-design/create-custom-category-archive-page-template/
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 | |
/** | |
* @author Brad Dalton | |
* @example https://wpsites.net/web-design/create-custom-category-archive-page-template/ | |
*/ | |
//* Remove the entry meta in the entry header | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); | |
//* Remove the entry image | |
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 ); | |
//* Add Image, Post Info, Title, Excerpt & Entry Footer Entry Meta | |
add_action( 'genesis_entry_header', 'genesis_do_post_image', 2 ); | |
//* Add Header Markup & Post Info | |
add_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5); | |
add_action( 'genesis_entry_header', 'genesis_post_info', 8 ); | |
add_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); | |
//* Run the Genesis loop | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment