Support » Themes and Templates » [Resolved] Gravatar placement
7 years, 5 months ago
Hi dear community,
im about to release my first wordpress theme to public and im in a little groubble now:
when you visit my dev-wp (helminger[dot]cc/tobi/index.php) you will see that a big gravatar icon is shown right at the top before the header starts.
to build in the gravatar i used
<img alt='' src='http://gravatarurl_or_default'
class='avatar avatar-$size' height='$size' width='$size' />
somewhere in the comments.php
can someone of you please tell me how i can remove this thing rather replace it.
i thank you so much for your help
greez from austria (no…. not that one with the kangaroos)
WordPress 2.7 actually supports Gravatars. You don’t need that code anymore.
echo get_avatar( $id_or_email, $size = '96', $default = '<path_to_url>' );
And see here http://codex.wordpress.org/Using_Gravatars
hey, thanx for your quick answer!!
i removed the
from comments.php but the icon is still there
i think `<?php
echo get_avatar( $id_or_email, $size = ’96’, $default = ‘<path_to_url>’ );
?>` goes in the functions.php, am i right with that?
ok i got it, thanx 😉 it goes in the comments.php not in the functions 😀