This is going to be a concise tutorial. On my another blog i had an old theme which doesn’t support displaying Avatars in comments. So i wandered along and found this snippet which can be replaced by the Avatar picutre when compiled and sent over to the server. So lets get it straight and show you the code

if (function_exists('get_avatar'))
{
      echo get_avatar(get_comment_author_email(), '32');
}

The above code renders to a 32 x 32 image which is an avatar for the user who left comment on your blog post. Just put this snippet inside comments.php that is located inside wp-content/themes/theme-folder

Hope this helps to tweak one of your old theme. Any updates, feedback, leave a comment 🙂
Cheers !!
Realin !

Share this post: