Last active
June 12, 2017 20:10
-
-
Save lizardking8610/e291f708927e0eb9afef0c1575e5b45f to your computer and use it in GitHub Desktop.
Disable Post Info on Genesis and Studiopress Themes for HTML5
This file contains hidden or 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
| //for when you need to edit or remove post info on genesis and studiopress themes. | |
| //* Customize the entry meta in the entry header (requires HTML5 theme support) | |
| add_filter( 'genesis_post_info', 'sp_post_info_filter' ); | |
| function sp_post_info_filter($post_info) { | |
| $post_info = ''; | |
| return $post_info; | |
| } | |
| //works well to keep content evergreen. Sometimes people won't read a post just because it has an older timestamp on the post info display |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
original post info shortcodes
//* Customize the entry meta in the entry header (requires HTML5 theme support) add_filter( 'genesis_post_info', 'sp_post_info_filter' ); function sp_post_info_filter($post_info) { $post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]'; return $post_info; }