WP User Avatar
[resolved] admin avatar isn't displayed (3 posts)

  1. johanna2patricia
    Posted 3 years ago #

    Hi Bangbay,
    Great plugin!
    I have 1 problem though. I think it is theme relate(evolve theme), but so far the author of the theme doesn't know the answer.
    The avatar of the admin(johanna) isn't displayed.
    I changed the code in 3 files from get_avatar to get_wp_user_avatar, but that didn't help either.
    Can you help me?
    This is a page on my website where you can see one of my comments(johanna=admin):

    And here is the website of the theme(evolve, the free one):

    Thanks for your time.



  2. Bangbay Siboliban
    Posted 3 years ago #

    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}\" />";


    $output = $gravatar;

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

  3. johanna2patricia
    Posted 3 years ago #

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

    Johanna :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP User Avatar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic