Home › Forums › Support › avatar size in comments › Reply To: avatar size in comments
November 29, 2015 at 10:36 am
#156505
Tom
Lead Developer
Lead Developer
Hi there,
I just added a new filter into the next version which will make this easier.
First, find this in the template-tags.php file:
$args['avatar_size'] = 50;
And replace it with this:
$args['avatar_size'] = apply_filters( 'generate_comment_avatar_size', 50 );
Then add this function:
add_filter( 'generate_comment_avatar_size','generate_change_avatar_size' );
function generate_change_avatar_size()
{
return 80;
}
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/