Last active
June 30, 2018 18:49
-
-
Save studiopress/5700250 to your computer and use it in GitHub Desktop.
Genesis post meta.
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Customize the post meta function | |
add_filter( 'genesis_post_meta', 'sp_post_meta_filter' ); | |
function sp_post_meta_filter($post_meta) { | |
if ( !is_page() ) { | |
$post_meta = '[post_categories before="Filed Under: "] [post_tags before="Tagged: "]'; | |
return $post_meta; | |
}} |
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
/* Post Meta | |
------------------------------------------------------------ */ | |
.post-meta { | |
border-top: 1px solid #ddd; | |
font-size: 14px; | |
margin: 0 0 20px; | |
padding: 5px 0 0; | |
} |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Remove the post meta function | |
remove_action( 'genesis_after_post_content', 'genesis_post_meta' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment