WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Gravatar placement (4 posts)

  1. vocano
    Member
    Posted 5 years 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)
    vocano

  2. dremation
    Member
    Posted 5 years ago #

    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

  3. vocano
    Member
    Posted 5 years ago #

    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?

  4. vocano
    Member
    Posted 5 years ago #

    ok i got it, thanx ;-) it goes in the comments.php not in the functions :D

    THANX anyway

Topic Closed

This topic has been closed to new replies.

About this Topic