Installing Gravatar support on your blog
To begin with you will need to find your ‘comments’ template, open that up and then search for the following line of code:
<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
Once found add the following code after the line:
<?php if(!empty($comment -> comment_author_email)) {
$md5 = md5($comment -> comment_author_email);
$default = urlencode('DEFAULT PATH');
echo "<img src='http://www.gravatar.com/avatar.php?gravatar_id=$md5&size=20&default=$default' alt='' />";
}
?>
Finally, change the DEFAULT PATH in the code above to the location of a default avatar that will be used if the commenter has not defined (signed up for) a gravatar. Save your file, and now you should have gravatar support without the need of any plugin.








