Monday, December 30, 2019

WordPress Comment Default Gravatar Me Custom Image Kaise Setup Kare

WordPress Comment Default Gravatar Me Custom Image Kaise Setup Kare

You must have seen in many blogs that there is a gravatar image show of people in a comment and if there is no account in gravatar then there is a default image show. If we want, we can set custom gravatar default image in our blog comment. With this, when someone will comment in our blog and it will not have a gravatar account, then our default image set up will show We are going to tell you about the same in this post. If you want to add your custom image to the default gravatar, then read this post carefully for this.
Wordpress comment me default Gravatar me custom image kaise setup kare
We have to enable commenting in our blog so that when a visitor has a problem, he can tell us by commenting. You must know that when we comment in a wordpress blog with our email id, then it shows our image by taking gravatar. I mean, that when we have an account in Gravatar and our picture will be set in it, only when we comment in a wordpress blog, then our image will show there. When we comment in a blogger blog, he shows our image by attaching it to Google plus profile.
In our blog, only those people do not comment, whose account is in Gravatar. Many such people also comment in our blog, which does not have an image in Gravatar. Which does not have an account in Gravatar, when they comment in our blog, the default image is show, i.e. the default image means that any image is show by wordpress. If we want, we can also show our custom default image. We are telling you about this in this post. After setting it up, when any such user will comment in your blog, whose account is not in Gravatar, then your custom image set will show in its gravatar. So let's not talk much, we talk directly.
Now we are going to tell you step by step how to setup custom image in default gravatar. For this, there is a very simple process, through which you too can easily follow.
Before I tell you about setting up custom image in default gravatar, I want to tell you one thing that you want to create the image that you want to show in default gravatar and upload it in your blog and copy the URL of that image. Only then follow the procedure given below.
Step 1: First of all, copy the code given below.
/ ** Custom gravatar by BloggingHindi * /
add_filter ('avatar_defaults', 'blogh_new_gravatar');
function blogh_new_gravatar ($ avatar_defaults) {
$ myavatar = 'http: //www.example.com/wp-content/uploads/image.png';
$ avatar_defaults[$myavatar] = "Default Gravatar";
return $ avatar_defaults;
}
Note: In this code, instead of http://www.example.com/wp-content/uploads/image.png add the URL of your custom gravatar image.
Step 2: Now login to your wordpress blog and Dashboard -> Appearance -> Editor Go into Functions.php Click on it and paste the copied code and save it.
Wordpress Comment Default Gravatar Me Custom Image Kaise Setup Kare 1
Step 3: Now WordPress Dashboard -> Sittings -> Discussion Go to
  1. Now Default Gravatar in this page below Custom gravatar It will be written, select it.
  2. Now Save changes Please do it.
Wordpress Comment Default Gravatar Me Custom Image Kaise Setup Kare 2

    Now the custom image is set in the default Gravatar of your blog. Now whenever someone in your blog will comment from an email that is not listed in Gravatar, then your custom image will be set in it. If you have any question related to this post, then comment. If you like this post, please share it as much as possible.

No comments:

Post a Comment