7 Jan 2013

couch mode print story

How to Change Default Anonymous Avatar in Blogger Comments

In the past tutorial you've learned how you can change avatars size in blogger comments but this simple tutorial will show you how to change or customize default avatar of anonymous commenters or Blogger users with no photo added on their profiles. After Blogger announced new feature of threaded comment, we can still customize it by adding a jQuery plugin to our template and replacing the default anonymous avatar URL http://img1.blogblog.com/img/anon36.png and the one for blogger users http://img2.blogblog.com/img/b36-rounded.png with our own.


anonymous, default avatar, blogger blogspot

Step 1.

If you are using the old Blogger interface:
  • Go to Dashboard - Design - Edit HTML - Expand Widget Template (make a backup)
If you are using the new Blogger interface:
  • Go to Dashboard - Template - Edit HTML - Proceed - Expand Widget Template (make a backup)

Step 2. Find (CTRL + F) this code in your template:

</body>

Step 3. Add the following code just above it:

<script src='http://code.jquery.com/jquery-latest.js'/>
<script>
$(&quot;img[src=&#39;http://img1.blogblog.com/img/anon36.png&#39;]&quot;)
.attr(&#39;src&#39;, &#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghvrNHJPYEo6NSkys0__hP-E2355294AtFlkh-SWoTyym_TkdmVjriTbJPWy6ZEiQXsEzWRNH8pcarUWFY8iaeFGKPbYvUwGs-ogmUpICdYuPZDrJg6LR01eIiiRXkmqfxM2kB0qs1Rew/s1600/default_avatar.gif&#39;)
.ssyby(&#39;blank&#39;)
</script>
<script src='http://code.jquery.com/jquery-latest.js'/>
<script>
$(&quot;img[src=&#39;http://img2.blogblog.com/img/b36-rounded.png&#39;]&quot;)
.attr(&#39;src&#39;, &#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwh_cuoaHBcpsDuMh2pqtiWLyp6YD8gvPb2oqKKsHqBT2JPx4IU2Ag49Fd4xwhTVyTArKvAlgWydaXS69xZyMHwoulhrZ38nd-O_1m_rX66FII-MMV3NMAzOz-1kebEyQDTllIc_RLYt8/s1600/blogger-user.png&#39;)
.ssyby(&#39;blank&#39;)
</script>

Step 4. Save the Template

How to change avatar:

For Anonymous users: Replace the code in red with the url address of your image
For Blogger users: Replace the URL in blue with your own.

You can choose one from these below (copy the url address):


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghvrNHJPYEo6NSkys0__hP-E2355294AtFlkh-SWoTyym_TkdmVjriTbJPWy6ZEiQXsEzWRNH8pcarUWFY8iaeFGKPbYvUwGs-ogmUpICdYuPZDrJg6LR01eIiiRXkmqfxM2kB0qs1Rew/s200/default_avatar.gif


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQcPAGBazBm-gfvd-lrO4eNunbXMKZQ3USRpolTBbz6_qx9NVrbnka3bo-zb2OPGEyXSYglvQz9wjMx3kGbiaWe-JH-VKOwrGwobveEOHjaqn1FHzHkCzxdnW6-E3BHDiH0GwQBX3argw/s1600/facebook.gif


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEih7d5PU3nm9d9lAdeTp0i7iWOK54NJYPuVNE2kELgMup06ac-d3cAkPTCebfV-B4SAYOy-R1Vqwe3ZHN4P6-xRVIZzcwl5IrPKNj4MecjbIVqV33plzcTq3vETt-eQrFnWMxdj4trxmjU/s1600/anonymous3.png



https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCSDO0VgkPsbRlLnM2PGeYp5sydBcAWqyxBelSULrGyjEhPjVEUj55O_6fCIhu4d9H-ycl5wK4hdffJe6KaZ9NYb7tN-aSzLD7S_yZhPKRsBcfh7-aKOdlSV-V55mfb-gy82ISPro1AjCi/s1600/blogger-user.png

If you liked this post, please consider sharing it. Thanks!

1 comment:

Blogger Widgets