Skip to content

Instantly share code, notes, and snippets.

@lizardking8610
Last active June 12, 2017 20:10
Show Gist options
  • Select an option

  • Save lizardking8610/e291f708927e0eb9afef0c1575e5b45f to your computer and use it in GitHub Desktop.

Select an option

Save lizardking8610/e291f708927e0eb9afef0c1575e5b45f to your computer and use it in GitHub Desktop.
Disable Post Info on Genesis and Studiopress Themes for HTML5
//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
@lizardking8610

Copy link
Copy Markdown
Author

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; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment