changing comment author metadata and avatar
-
I’d like to restyle the author/time stamp meta-data in the comments. I’m trying to remove the avatar for all authors and the “post author” image. I’d like the meta-data to be on a single line that says “Discussed by “author” on “date”. Ideally I’d like the reply to the comment link to be on the same line.
I have pasted the ‘function twentytwelve_comment( $comment, $args, $depth )’ in functions.php for my child theme. I moved the header with the author meta-data below the comment content, but I can’t figure out how to make the other changes I want, in part because I can’t find the corresponding css, particularly for the positioning.
Any ideas on how to proceed? I’ve spent a long time commenting out various bits of code and trying to write new css with little success.
Thanks,
Here’s the part of the function I’ve been looking at:<header class="comment-meta comment-author vcard"> <?php echo get_avatar( $comment, 44 ); printf( '<cite class="fn">%1$s %2$s</cite>', get_comment_author_link(), // If current post author is also comment author, make it known visually. ( $comment->user_id === $post->post_author ) ? '<span> ' . __( 'Post author', 'twentytwelve' ) . '</span>' : '' ); printf( '<a href="%1$s"><time datetime="%2$s">%3$s</time></a>', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), /* translators: 1: date, 2: time */ sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() ) ); ?> </header><!-- .comment-meta -->
- The topic ‘changing comment author metadata and avatar’ is closed to new replies.