drivelocity.com - senseless nonsense in a nonsensical world

16 Apr, 2009

Gravatar Problem Fix

Posted by: drivelocity In: Blogging

While I had the option set to display the Mystery Man for people who aren’t registered on Gravatar.com, it never displayed correctly on drivelocity.com. Rather than showing whatever I had selected, the Gravatar logo would be displayed. There is an issue with WordPress themes and the code used to display gravatars that have left many people wondering what’s going on and how to fix it… Here’s how:

  1. Open your theme’s comments.php file
  2. Find the line that calls for the Gravatar
  3. Check to see if it uses “get_avatar”
  4. If not, replace it with the following code:

<?php echo get_avatar( $comment, $size = ‘40′ ); ?>

This will enable it to use the Admin settings. The only variable you may need to change here is the size of the Gravatar. Ratings & default Gravatar are Admin settings under Settings>Discussion and spacing/style issues are located in your css file(s). Like anything, save a backup copy of any files you edit in case you need to revert to them later.

3 Responses to "Gravatar Problem Fix"

1 | GregR

April 17th, 2009 at 4:28 am

Cheers good tip, I am a big fan of gravatars. It makes it easier to see the regular commentators and praise them individually.

GregR“s last blog post..More Kiwi Pavlova Goodness with Pavlova Entrepreneurs (Video)

2 | drivelocity

April 19th, 2009 at 9:28 am

Greg, Thanks. I enjoy sharing info like this that can help other people. :)

3 | Rick

April 22nd, 2009 at 3:48 am

Thanks for sharing a good trick of Gravatars logo.
Its makes easier to blogger to find regular commentator.

Rick

Comment Form




  • drivelocity: I love the ignorant comments like the last one. They provide no reason, no research and no rationale beyond that of a spoiled 2yr old. It just proves
  • Russell: Domains by Proxy (DBP) is ideal to publish hate sites as long as you don't use your real name. Somebody has done that to me - and DBP don't care.
  • Fred: Whenever I hear the t-mobile ring tone I have to say get more, and that's all I know about the carrier.

Sponsors


Three's a charm - Three Great Services
Once You Know, You Newegg
Affordable online backup for your small business
Advertise on drivelocity.com


SacTownsBest.com
Sacramento Top 25

Subscribe

Enter your email address:

Delivered by FeedBurner

About

drivelocity.com is a host to political and personal ranting and raving on a variety of issues including blogging, current events, humor and misc. drivel.
Top Blogs blog search directory