Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Gravatar Box

Displays a box next to the comments form with an automatically updating gravatar, or a sign up link if no gravatar is found for the user.

How do I make this look like...?

Consult a quality CSS expert. I added the classes and such for just that reason. With some minor CSS code, you can make it look any way you like.

If you must know, the particular CSS I use is this:

gravbox {

float:left; margin-right:6px; width:96px; height:96px; background:url(http://www.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=96.png); }

gravbox .avatar {

margin:0; padding:0; }

gravbox .nogravatar {

text-align:center; font-weight:bold; }

gravbox img {

border:1px solid black; }

This makes the gravatar div into a fixed size of 96 px square, floating to the left of where I placed it (right before the comment form's fields). The background url is the default blank gray man avatar. When the person's actual gravatar loads, it has a 1 pixel solid black border. When there is no gravatar for the person, it shows the link to get one, bolded, centered, over the gray man background. The margin and padding are removed on #gravbox .avatar, because that's what appears for logged in users only, and I wanted a consistent look across the two cases.

So as you can see, styling the gravatar box is fairly easy to do for any way you want to do it.

I see no gravatar on my page!

Possible problems:

  • Did you add the gravbox code to your comments form?

  • Are you logged in? Most themes don't display the email box when you're logged in. Log out and look at the page.

  • Type in an email address for something to actually happen. The div defaults to empty, until it has something to check.

  • Email addresses always contain the @ sign. Without an @, it won't bother checking.

  • Can you access gravatar.com normally? The request happens in your browser, not from the website.

Nothing happens when I type in an email!

Open your browser's error console. Any javascript errors in there? If so, they may have stopped execution of javascript on the page. Solve those errors. This may involve deactivating other plugins which are broken and causing errors on your page.

The gravatar it displays is wrong!

No, it's not. Go login to your gravatar account and check.

Requires: 2.8 or higher
Compatible up to: 3.2.1
Last Updated: 6 years ago
Active Installs: 900+


0 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,2,2 100,1,1