How to set the Default profile pic for comments
-
Hello everyone,
I am trying to set default Profile pic for all users. One Profile pic for myself(Admin) and one Profile pic for everyone else. Currently I am using a Plugin “ProfilePress” formerly known as WP User Avatar. It was a great plugin doing only one thing, setting profile pic. But recently this plugin completely changed to something else and they introduced lots of bloatware and now this plugin is something else now. Though it’s still working for setting profile pic what I want. But I want to remove this plugin because of bloatwares.
I tried this code got from WPBeginner website to set profile pic:add_filter( 'avatar_defaults', 'wpb_new_gravatar' ); function wpb_new_gravatar ($avatar_defaults) { $myavatar = 'https://only4gamers.xyz/wp-content/uploads/2021/03/user.svg'; $avatar_defaults[$myavatar] = "Default Gravatar"; return $avatar_defaults; }
And it’s not working because I am using a svg image. It’s showing this error:
Error 0002. The type of image you are trying to process is not allowed.And my image is loading from this url:
https://i0.wp.com/only4gamers.xyz/wp-content/uploads/2021/03/user.svg?ssl=1Why my image url starting with i0.wp.com? I am not using Jetpack. Which other plugin or service responsible for this?
Please help me
ThanksThe page I need help with: [log in to see the link]
- The topic ‘How to set the Default profile pic for comments’ is closed to new replies.