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.
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>
$("img[src='http://img1.blogblog.com/img/anon36.png']")
.attr('src', 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgATYF7qpBvFe8GYQYYFrgQy3NBmkP8fI2PcC7v-Ig_84Va8yqbP1l1v0Gfn5PSBCzLYOB8XSw4_h2Vtd3kaK0zdP-q7p0X4fyKh8aJanudhPuuiSjXeMDyEB7_J6_6gYBPJftOLJ7ns1w/s1600/default_avatar.gif')
.ssyby('blank')
</script>
<script src='http://code.jquery.com/jquery-latest.js'/>
<script>
$("img[src='http://img2.blogblog.com/img/b36-rounded.png']")
.attr('src', 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgj6RBpPvC9HsNtoMOlxHkttmj1_m3gHo29Y6zHXLD7-azPHCWN-cuZY5Wsw3s1BMYPxuU8va4NhA_N3hTqROTVTYK7ldxx2sZJlTeRZ7BqBth6mIMaQGH_IloEMwgd1hVzjrgRjDqORM/s1600/blogger-user.png')
.ssyby('blank')
</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.
0 comments:
Post a Comment