Support » Plugin: WP User Avatar » admin avatar isn't displayed

Viewing 2 replies - 1 through 2 (of 2 total)
  • I took a look at the theme, and it’s using its own function for get_avatar. What the theme is doing is adding “gravatar” as a CSS class you can use. However, there is a problem with a different part of their code. An easy way to fix this is to change line 66 in library/functions/pluggable.php from:

    $output = "<img class=\"avatar gravatar gravatar-{$gravatar_size}\" alt=\"{$author}'s Gravatar\" src=\"{$src}\" width=\"{$gravatar_size}\" height=\"{$gravatar_size}\" />";

    to:

    $output = $gravatar;

    Keep in mind that if you upgrade your theme in the future, you’ll have to manually change this line again.

    Hi Bangbay,
    You are the best! Thanks so much! Works like a charm.
    Good luck with all that you do!

    Johanna 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘admin avatar isn't displayed’ is closed to new replies.