Custom Gravatar not working

I think the problem is simply that your default avatar isn’t publicly available. Try for example http://upload.wikimedia.org/wikipedia/en/b/b0/Avatar-Teaser-Poster.jpg instead of http://loalhost:888/wordpress/wp-content/themes/blog-theme/img/icons/avatar.jpg Notice that the default gravatar is served via http{|s}://i{0,1,2}.wp.com/… From the docs: When you include a default image, Gravatar will automatically serve up that image if there is no image associated with the requested email … Read more

Replace Gravatar with uploaded images?

If you are set your custom or uploaded profile picture and need to see on front end, you can use below function . <?php echo get_avatar( $id_or_email, $size, $default, $alt, $args ); ?> If you have to change your gravatar to custom profile picture you can refer below link : http://www.wpbeginner.com/wp-tutorials/how-to-change-the-default-gravatar-on-wordpress/

Removing Gravatar.com support for WordPress and Simple Local Avatars

If you want a super-lightweight solution and don’t mind dabbling in a little code, drop this in your functions.php; function __default_local_avatar() { // this assumes default_avatar.png is in wp-content/themes/active-theme/images return get_bloginfo(‘template_directory’) . ‘/images/default_avatar.png’; } add_filter( ‘pre_option_avatar_default’, ‘__default_local_avatar’ ); Alternatively, if you want a bit more juice, with the ability to manage everything in the admin, … Read more