How to remove 'by [author]' from Genesis Framework
2 answers
I don't know if you want to edit the core framework files, but this is the easiest way I've come across. (please make a backup before editing this).
The file you have to edit is in the main genesis structure folder /lib/structure/post.php on line 227 you
function genesis_post_info() {
global $post;
if ( is_page( $post->ID ) )
return;
$post_info = '[post_date] ' . __( 'By', 'genesis' ) . ' [post_author_posts_link] [post_comments] [post_edit]';
printf( '<div class="post-info">%s</div>', apply_filters( 'genesis_post_info', $post_info ) );
}
edit this for convenience, for what you requested you will have to replace it with
function genesis_post_info() {
global $post;
if ( is_page( $post->ID ) )
return;
$post_info = '[post_date] [post_comments] [post_edit]';
printf( '<div class="post-info">%s</div>', apply_filters( 'genesis_post_info', $post_info ) );
}
If you also want to remove the comment count, please remove [post_comments] as well
-five
source to share