Lee.org

View notable entries only

Installed Gravatars

October 16th, 2008 10:45am. Wordpress

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 Response to “Installed Gravatars”

  1. lee Says:

    Nice picture, eh?

Leave a Comment




Subscribe without commenting