Installed Gravatars

Well, that was straightforward. I installed Gravatars in the blog comments.

So now if you want to put your mug shot next to any of your comments on any blog in the world that supports Gravatars, just sign up with Gravatar.com and give them your image.

 

Here’s how I installed Gravatars.

I added 1 line to my comments.php following this already existing line:

<cite><?php comment_author_link() ?></cite> Says:
<?php echo get_avatar( $comment, 50 ); ?>

And I added this to my style.css

.avatar { 
float: right;
}

Done.

One Comment

  1. lee says:

    Nice picture, eh?

Leave a Comment

Do not write "http://" in your comment, it will be blocked. It may take a few days for me to manually approve your first comment.

You can edit your comment after submitting it.