How to Change the Comment Avatar Size
This is another simple tutorial that shows you just how easy it is to customize the inLine theme for WordPress. Today we are going to learn how to change the comment avatar size. By default, the avatar size is 48 x 48 pixels. In order to change this, paste the following into your child theme’s functions.php file:
add_filter( 'inline_get_avatar', 'tgm_custom_avatar_size' );
function tgm_custom_avatar_size( $avatar ) {
global $comment;
$avatar = get_avatar( $comment, $size = '64' );
return $avatar;
}Change the number 64 to whatever size you want your avatar to be. Enjoy!
Get the Latest Tutorials Delivered to Your Email Inbox!
Never miss out on another awesome tutorial! Enter in your information below.
very nice theme