How to Change New Anonymous Avatar in Blogger
Pretty posts
In this post, we will learn how to change or customize default blogger comment anonymous users avatar whose have no image on their profile. For these users blogger set a default blank image and it will not look good in your site. Now after update blogger, it will not display any image. We will try to change default image url.
How to Change: Follow our tutorial a to z with carefully. If you face any problem, you can tell me by comment.
1. Go to blogger Dashboard > Theme and click on the Edit HTML button.
2. Click anywhere inside the code area and to open a search box type CTRL+F from keyboard.
3. Type or paste following code into the search box and hit enter.
Or you can directly paste above code without any change. We have used following avatar in this code.
If you found this helpful, don't forget to sharing it.
How to Change: Follow our tutorial a to z with carefully. If you face any problem, you can tell me by comment.
1. Go to blogger Dashboard > Theme and click on the Edit HTML button.
2. Click anywhere inside the code area and to open a search box type CTRL+F from keyboard.
3. Type or paste following code into the search box and hit enter.
</body>4. Paste following code above the </body> tags.
<script>
var oldSrc = '//img1.blogblog.com/img/blank.gif'; //Default blogger image link
var newSrc = 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-f-kQSWa60GZSyF6cr36t2s0YtPPgYAHzeQbVYdJszYqm-cagpeoPZFkPaW5-q2UscGD9e6GlMTVqVvwIbvkar9CdXRp1bIn1_XAfZ2NrTRf-aAkF9IKJEoFpQS6z3cvXhbzNeDm4zZs/s1600/blank-user-avatar.png'; //New image link
$('img[src="' + oldSrc + '"]').attr('src', newSrc);
</script>
Replace https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-f-kQSWa60GZSyF6cr36t2s0YtPPgYAHzeQbVYdJszYqm-cagpeoPZFkPaW5-q2UscGD9e6GlMTVqVvwIbvkar9CdXRp1bIn1_XAfZ2NrTRf-aAkF9IKJEoFpQS6z3cvXhbzNeDm4zZs/s1600/blank-user-avatar.png with your own image url. Don't edit anothers.Or you can directly paste above code without any change. We have used following avatar in this code.
If you found this helpful, don't forget to sharing it.




It worked! I uploaded image on Photobucket and got the direct image link. Thanks so much Codi.
ReplyDeleteI haven't though of using javascript as a solution. Other methods such as changing the css code (.avatar-image-container) have given me no results. Thanks a lot Codi!
ReplyDeleteYeah, this is good stuff.
ReplyDeleteJust tried it on My Blog and it worked.
Tweaking the css code almost made me run mad (literally). The JavaScript makes it all easy.
Thanks Codi