Forums

[resolved] Adding Gravatar to comments (7 posts)

  1. Lazybuttons
    Member
    Posted 1 year ago #

    http://bit.ly/aIHeZx
    I want to add Gravatar to the left of the comment number on the right. The theme is a bit old.

    I'm not a theme maker, so details help. Thanks.

  2. dkristine
    Member
    Posted 1 year ago #

    For WordPress 2.5+, you could add this to your comments loop in your comments.php file
    <?php if(function_exists('get_avatar')) { echo get_avatar($comment, '50'); } ?>
    and style it with CSS to float left.

    For versions below 2.5, there is a plugin to add support: http://wordpress.org/extend/plugins/wp-gravatar/
    but I have never used it.

    Check out the Codex on using Gravatars:
    http://codex.wordpress.org/Using_Gravatars

  3. Lazybuttons
    Member
    Posted 1 year ago #

    That plug in removed the linking in the name of people who comment.

    I don't know CSS.

  4. Lazybuttons
    Member
    Posted 1 year ago #

    Anymore hints?

  5. Lazybuttons
    Member
    Posted 1 year ago #

    bump

  6. MAS
    Member
    Posted 1 year ago #

    you could add this to your comments loop in your comments.php file

    <?php if(function_exists('get_avatar')) { ?>
    <span class="authorlink">
    <?php echo get_avatar($comment, '50'); ?>
    </span>
    <?php } ?>
  7. Lazybuttons
    Member
    Posted 1 year ago #

    Still don't know where to put it.

    Edit: nvm.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.