Issue for changing Mystery Man avatar
-
Hi there,
I can’t change my default avatar image. I found this code and a lot of quite similare versions that I’ve tried :
add_filter( 'avatar_defaults', 'newgravatar' ); function newgravatar ($avatar_defaults) { $myavatar = get_bloginfo('template_directory') . '/images/own-gravatar.jpg'; $avatar_defaults[$myavatar] = "Own"; return $avatar_defaults; }
But on the backoffice discussion page and on the comment area, the image is not displayed. The return src url is :
https://1.gravatar.com/avatar/3923c5b0606e373cb28b02f249064f2f?s=80&d=http%3A%2F%2F((mysite))%2Fwp-content%2Fthemes%2Frttw_v2%2Fimg%2Favatar.jpg%3Fs%3D80&r=G
I don’t know where the first part is coming from. It looks to work for thousand of WP users…
Anyone has an idea to fix ?
Thanks a lot for your help !
- The topic ‘Issue for changing Mystery Man avatar’ is closed to new replies.