genesis_post_info
filter hook can be used to customize post info which appears in entry header by default in Genesis.
For example,
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_filter( 'genesis_post_info', 'custom_post_info' ); | |
function custom_post_info ( $post_info ) { | |
if ( is_singular( 'sermons' ) || is_post_type_archive( 'sermons' ) ) { | |
$post_info = ' '; | |
} | |
return $post_info; | |
} |
with
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
p.entry-meta .entry-time:after, | |
p.entry-meta .entry-terms:after { | |
content: '|'; | |
padding-left: 7px; | |
padding-right: 5px; | |
} | |
p.entry-meta .entry-terms:last-child:after { | |
content: ''; | |
} |
will display date, terms of speaker, series and passage taxonomies in the post info on singular sermons CPT pages and sermons CPT archive page.
If you would like to add the slug of taxonomy as an additional class besides entry-terms
to the span elements,
add this code:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.