-

21 February 2013

How to Change Default Anonymous Avatar in Blogger Comments

VM | 3:29 pm |
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/AVvXsEjQ0GlioFoJE3ehHFenK-Hbm3t10tT0nrmDnVoeQ2g10WdIn4Vdta5Y_3vsAaqQ4jhBLUVS_AkFN_y1K4MCkEYw0jDBXamtGQ6X0dLZGYu4CDnWZSYSG-E_Cn4Fm_Vb1VFDQtbqDNk34Xg/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/AVvXsEhq7CNkxt7D-08eMm6EbDcw5fz2inq5I9TkEZE0Vrzof9PcfyFYW_Hd5SVLUXSowwJlqY3FuL1gnX2TtjHMXA5mqONgyL2UmqyFa4VhDV5YoshMNRb5_H1VWGuOuVvX131TJNF7ycCY2ac/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/AVvXsEjQ0GlioFoJE3ehHFenK-Hbm3t10tT0nrmDnVoeQ2g10WdIn4Vdta5Y_3vsAaqQ4jhBLUVS_AkFN_y1K4MCkEYw0jDBXamtGQ6X0dLZGYu4CDnWZSYSG-E_Cn4Fm_Vb1VFDQtbqDNk34Xg/s200/default_avatar.gif


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoIeGPEN-bRbTe7JDiCZ3tzBhtC7AOjsxwoAHNm0eSsAlzE5J8TWdpcLR5eYGRhlZcNcmCITUkbmkRF7BJ-1lbws_asQucH0xvmvwDbletRSBUjZhlpI4lVHakjbegyT13oB2hpBwas34/s1600/facebook.gif


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj93KczPL14w9RiBXN1sJwJ03tzCn3bPjkmBMoS50McjmFi5-aETBek8koZmC9fh2A8GAemRhyphenhyphenOCavHAl7d9tN90PO1ZHlmg2_bizdYd1ZkMtCMKIpT9UGFvCzFzwMVGJZbqOg7oQpjhXU/s1600/anonymous3.png



https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxTB97uN8BqP0BLXaFQwoOoIok0TtSSFVnw36yM9VzXA_p9W77iGzpFbEQ4XGcftOUcQChsu_bp_vmsRETo_SSkmPbWksEl6mrKG5CNzQ8Hasw3jkVeAE4ogVnvnrhWZ3VqOmEhHXn4ynH/s1600/blogger-user.png

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

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...

Subscribe Updates, Its FREE!