WordPress.org

Support

Support » Themes and Templates » [Resolved] Gravatar placement

[Resolved] Gravatar placement

  • 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)
    vocano

Viewing 3 replies - 1 through 3 (of 3 total)
  • dremation
    Member

    @dremation

    WordPress 2.7 actually supports Gravatars. You don’t need that code anymore.

    <?php
       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

    <img alt='' src='http://gravatarurl_or_default'
    class='avatar avatar-$size' height='$size' width='$size' />

    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 😀

    THANX anyway

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Gravatar placement’ is closed to new replies.