As a little divertissement, I’ve added Gravatars or globally recognized avatars to my blog, little images of you that are associated to your comments so… comment more often! ;-)

There’s a plugin for WordPress that I installed and activated on my blog, but nothing happened until I RTFM and “discovered” that I should add a simple line of code to comments.php like the following example that is running now on my site (sorry for the newlines):

<li <?php echo $oddcomment; ?>id="comment-< ?php comment_ID() ?>">
  <img src="<?php gravatar(false, 40); ?/>" alt="" style="float: left; margin-right: 4px;" />
<cite>< ?php comment_author_link() ?></cite> Says:


Lascia una risposta

L'indirizzo email non verrà pubblicato.

È possibile utilizzare questi tag ed attributi XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>