• 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=1

    Why my image url starting with i0.wp.com? I am not using Jetpack. Which other plugin or service responsible for this?

    Please help me
    Thanks

    • This topic was modified 2 years, 3 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to set the Default profile pic for comments’ is closed to new replies.