Simply put, a gravatar is an avatar image from Gravatar that follows you from blog to blog appearing beside your name when you comment on Gravatar enabled blogs. Check out the screenshot below. Signing up for Gravatar is free and you can sign up using this link here.

Now that you’ve signed up, the next thing that you ought to check is to see if your WordPress theme supports Gravatar. If it doesn’t then here are a few simple steps with which you can have Gravatar displayed beside the comments.

In your WordPress theme folder locate comments.php, open that in Notepad or any other text editor and locate the following code

<?php comment_text() ?>

Next thing to do to enable Gravatars is to replace that line of code with the one below

<div class="gravs">
<?php if (get_bloginfo('version')>=2.5)
echo get_avatar( $comment->comment_author_email, $size = '50', $comment->comment_author_link);?>
<?php comment_text() ?>
</div>
<br clear="all" />

This code will make WordPress display Gravatar on your comments. If you wish you can add some CSS styling to your style.css file.

If you like this post, then do consider subscribing to our blog. Thanks!

Popularity: 2% [?]

Hi!, If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Related posts

You Should Also Check Out This Post: