How to add avatar and make it default in wordpress

Here, I have explained how to add avatar and make it default in wordpress. It’s very simple to add in wordpress and it will add more chance of branding of website.

Please add below code to function.php file.