I’m working on a theme and am using the get_avatar function. The WordPress docs on this site state,
“If the gravatar reverts to the default image, whether you have specified a default or not, the img element will also be given a class of avatar-default”
Unfortunately, no such class is being assigned to my gravatars when the default image is displayed. Here’s my code…quite simple, which is why I can’t figure out what the problem is…
echo get_avatar($comment, '80');
Thanks in advance!!
- The topic ‘get_avatar() Problems’ is closed to new replies.