logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

This is an old version of this answer!

Return to the current answer
put this to your functions.php:

my_get_avatar_filter($avatar_html) {
$exp1 = explode("src='", $avatar_html);
$exp2 = explode("'", $exp1[1]);
return $exp2[0];
}


and this in comments template:
<li>
<div class="avatar" style="background: url(<?php echo my_get_avatar_filter(get_avatar($comment)); ?>)></div>
<div class="comment">This is a comment.</div>
</li>

Andrzej Zglobica | 02/10/11 at 9:13pm

This is an old version of this answer!

Return to the current answer