Forums

Painter Comment Avatars Being Cut off (2 posts)

  1. debbieyost
    Member
    Posted 2 years ago #

    I am new to WordPress although I have some limited knowledge of HTML from using Blogger for two years. I am using the Painter Theme for my blog but have a problem with my commenters avatars not showing up completley. Only the top portion of the picture shows up even though the area is blocked off for the whole picture. The theme does not indicate a size for the avatar and I don't know how to fix it.

    Here's an excerpt from the Comment editor page:

    <div id="comment-<?php comment_ID(); ?>" class="comment <?php if(get_the_author_email() == get_comment_author_email()) print "author-comment"; ?>">
    <?php // print get_avatar($comment); ?>
    <?php
    if(function_exists('get_avatar'))
    {
    print get_avatar($comment);
    }
    else
    {
    // alternate gravatar code for < 2.5
    $grav_url = "http://www.gravatar.com/avatar.php?gravatar_id=" . md5(get_comment_author_email());
    print "<img src='{$grav_url}' class='avatar' />";
    }
    ?>

    Any suggestions?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    The theme does not indicate a size for the avatar

    Looks like the images need to be 96px by 96px.

Topic Closed

This topic has been closed to new replies.

About this Topic