Tag Info

New answers tagged

0

Found it - no need to bother with filters, given that there is avatar_size parameter within wp_list_comments, it can be found here: https://developer.wordpress.org/reference/functions/wp_list_comments/


0

Alright, I just doubled it now by adding the avatar line before the author link. Both keep intact this way and get to be shown. Here is the code, I added/changed: <div class="comment-author vcard"> <?php echo get_avatar ($comment, '72'); ?> <?php printf(__('%s <span class="says">:</span>'), get_comment_author_link()) ...


1

You're looking for the get_avatar function, documented here get_avatar( $id_or_email, $size, $default, $alt ) You'll need either a user ID, or an email to use it, something like this should do the trick: echo get_avatar( get_comment_author_email(), 'thumbnail' ); If avatars are turned off in settings, this function will not return anything



Top 50 recent answers are included