Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Lawsonry

    (@lawsonry)

    Anonymous User 92042

    (@anonymized-92042)

    I think the problem here is that the plugin appears to override custom avatars with the default blue Gravatar icon.

    I came here looking into just this problem. I installed Easy Author Image 1.5 and the author photos seem to work fine, but all the comments on the site switched to the default Gravatar icon from the custom one I had set up.

    I also see the problem on the Discussion Settings page in WP admin, where all the icons listed changed from the various 32×32 images to a single 64×64 Gravatar logo repeated over and over for each option.

    The problem seems to be in easy-author-image.php line 218. The Gravatar URL does not include a fallback path for the custom avatar set up for the site. I’m not familiar with this core functionality off the top of my head but I suspect there’s a WP function that should be called here instead of using a hard-coded gravatar.com URL. (This will also all for loading gravatars via SSL, which is also currently unsupported.)

    I am having this same exact problem. In one location it will have my gravatar and in other posts it just has a the blue gravatar logo.

    Nevermind that last post, I added this code to where I needed the photo. The code in the theme I was working with was bad.

    ‘<?php echo get_avatar( get_the_author_email(), ’48’ ); ?>’

    Thread Starter emedos

    (@emedos)

    I added this code to where I needed the photo. The code in the theme I was working with was bad.

    ‘<?php echo get_avatar( get_the_author_email(), ’48’ ); ?>’

    Hi, can you pls explained where did you enter that code? thanks in advance

    I did an inspect element of the where the photo should be, I saw some funky code that was pointing at the blue gravatar icon. That code is what I search for in the single.php file. Replace the code that you found through the inspect element with the one I posted and it should work.

    (You might want to look for a blog.php file, I’m working with an avada theme)

    This was just for the author though, I have not tested it for comments.

    *note: if it does work for you but the image is too big or too small, adjust the last number in the code ’48’ to whatever size you need.

    Anonymous User 92042

    (@anonymized-92042)

    For the sake of the other people getting email notifications from this issue, let’s try to keep the off-topic stuff like theme modification out of these comments. These are probably better off in a new thread in the general WP support forums. Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can the default avatar be changed to a our default one?’ is closed to new replies.