Genesis Child Theme Modifying Comments display

You can use the genesis_post_info and genesis_post_meta filters in your child theme rather than modify the parent theme frameworks files which will be lost when you update Genesis.

Remove comments link from post info

add_filter( 'genesis_post_info', 'remove_post_info_comments_link' );

function remove_post_info_comments_link($post_info) {

$post_info = '[post_date] by [post_author_posts_link] [post_edit]';
return $post_info;
}

Add comments link to post meta

add_filter( 'genesis_post_meta', 'add_comments_post_meta' );

function add_comments_post_meta($post_meta) {

$post_meta="[post_categories] [post_tags] [post_comments]";
return $post_meta;
}

Note: This code only works with themes running HTML 5 markup.

tech