• The latest version of the plugin shows the default avatar.

    I fixed it by this code:

    $writeList .= (esc_url( get_avatar_url( $k->comment_author_email ) )) ? '<img class="tcwGravatar '.$k->comment_author_email.'" alt ="'.$k->comment_author.'" title="'.$k->comment_author.'" src="'.esc_url( get_avatar_url( $k->comment_author_email ) ).'" style="width: 20px; height: auto; padding-right: 10px;" />' : '<img class="tcwGravatar" src="https://www.gravatar.com/avatar/'.$image.'?size='.$avatarSize.'&default='.$defavatar.'" alt ="'.$k->comment_author.'" title="'.$k->comment_author.'" /> ';

    at below this code:
    $defavatar=urlencode($defaultGravatar);

    I hope it helpful for someone.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Lorna Timbah

    (@webgrrrl)

    The widget by default will ALWAYS display the Default Gravatar.
    Sometimes after a WP update, you may need to go back to the widget and Save/Update the settings for it to take effect.

    To change the gravatar, go to the Top Commentator Widget, and look for “Use the following default Gravatar:”
    Select your preferred Gravatar from the drop down.

Viewing 1 replies (of 1 total)
  • The topic ‘Avatar shows the default’ is closed to new replies.