Sunday, 6 May 2012

How to Change Default Anonymous Avatar in Blogger Comments

Earlier, you've seen how you can change the size of the avatars in blogger comments and now I will show you how to change or customize the default avatar of anonymous commenters or Blogger users with no picture on their profiles. While Blogger announced the new threaded commenting system, we can still customize it by adding a jQuery plugin to our template and then replace the default anonymous avatar that can be found on this address: 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

Replace the Default Anonymous Avatar on Blogger Comments


Step 1. Go to Dashboard - Template - click on the Edit HTML button


...click anywhere inside the code area and open the template search box by pressing the CTRL + F keys

Step 2. Type or paste this code in the search box, then hit Enter to find it:
</body>
Step 3. Just above the </body> tag, add the following code:
<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/AVvXsEipbmKKKwB3lok5NzWFioEnAvN_fZAouNw1EtkfaTkTcIQ_4NWzz7YdPLsFoumsFwB1hi9tO-4m08baqwlkwRt_HDAywc83meOqotKqn78sEFKTbfhrxXh5-zE8rMeeApL6SpXFMkqpX4U/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/AVvXsEjHUH339AGmwjjqAoLZESMsSIdGnrqJb86QTILmp7DKlpDzJIy3Du3oAIoFocwYDCTMRfHhtSJNkOCpXlcE1o9PwC71300A2af6T8SKsNgJ-lVMeHutGnYXBr8im11CT2TA7j9aa9LKB7w/s1600/blogger-user.png&#39;)
.ssyby(&#39;blank&#39;)
</script>
Step 4. Save the changes by clicking on the Save Template button

Changing the default avatar

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

You can choose an avatar from here and then copy the url of it:


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipbmKKKwB3lok5NzWFioEnAvN_fZAouNw1EtkfaTkTcIQ_4NWzz7YdPLsFoumsFwB1hi9tO-4m08baqwlkwRt_HDAywc83meOqotKqn78sEFKTbfhrxXh5-zE8rMeeApL6SpXFMkqpX4U/s200/default_avatar.gif


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvVjAHqpunjYVegbUQq64ilnBYMwLUoYuUR2_eSrHmofuNXzBw51qHDb7EUbuLRFssjbA5D7wMBmFPXhJ3eaerWXGhtAdGFf8E7uls4dMc9CohtaTDiDIw-6vEyjeOw3aDjNgGKO_LjhY/s1600/facebook.gif


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwDo3zVj7EI_C8DEiZdDXNsgCTJLwJE9HQXMR11Mp4t-EX1y2a3xBwYja1oFw9UhOsuzR7WSpiCY3_lInIq09oHPInev6nDCfXbko6b-rBFk-mFoJkEJk6Ap9liuJib5OdTZXkpoDcBPM/s1600/anonymous3.png



https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu-Ju9FysRo9KqPTyHRqLQwv_W-73plsElwqkP4BUVst91KiMTvjHJzmA3FGnnQDCw1m0BIvKi31n49noGKpGoqnZC8a-ABu9BZ3Ar1L3LjBI3ZDljxaZBc7YeN-cIlZ1aTScxu0Wex2B1/s1600/blogger-user.png

That's it! If you found this trick useful, please consider sharing it.

No comments:

Post a Comment