In
the last tutorial, I wrote about how
you can change avatars size in blogger comments and in this simple tutorial,
I will show you how to change or customize default avatar of anonymous
commenters or Blogger users with no picture 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 found at this
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.
Step 1.
Go to Dashboard - Template - click on the Edit HTML button and then Proceed
...then select Expand Widget Template (don't forget to make a backup)
Step 2. Find (CTRL + F) this code in your template:
Step 3. Add the following code just above it:
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):
That's it!
If you liked this post, please consider sharing it.
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.
Step 1.
Go to Dashboard - Template - click on the Edit HTML button and then Proceed
...then select Expand Widget Template (don't forget to 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>
$("img[src='http://img1.blogblog.com/img/anon36.png']")
.attr('src', 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcQerzV7zq1z7Js0mmRHaL0gZZsuQjScn-WucEmw0HTiwlpYyUSVNzGQXGwf480-Tomt67j3hcjICWeeBpVgfONvLw_5SFmyHCM-6nkNWI2mgIPA9sq-niXRDU8-E6oFUCHvT9SvxC-bM/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/AVvXsEi-0yT_pepybQZ9emoNGBTDJgCT9LQrglEFmNB8gO7e5IJtSWWqh0xaTza_mXPXsLMECvN-0Pagbavk6kvL6zT0P0TYUK6OwIMXgg6OuMdOc1CauXEPnF_Scd2mhTYf5nf1VtMpHUhe-r4/s1600/blogger-user.png')
.ssyby('blank')
</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/AVvXsEgcQerzV7zq1z7Js0mmRHaL0gZZsuQjScn-WucEmw0HTiwlpYyUSVNzGQXGwf480-Tomt67j3hcjICWeeBpVgfONvLw_5SFmyHCM-6nkNWI2mgIPA9sq-niXRDU8-E6oFUCHvT9SvxC-bM/s200/default_avatar.gif
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj68oMItJpK8RURBQzxIh64yuIyaJh4l2ChrFMYQdAfcz5ewzs7IXLQuNYs5kcqhrPfXLlJHLZpWAvZ3h9Oq8yX40q_NTglNcS7NILyJUltRgfRqffU8_cxQUYp9T-aX40qKwPkrcPcics/s1600/facebook.gif
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimllEs5PK3H1ysdgXc4p3ax1i2TRdTJXtNIK4N4xoQMvVQmSIDDF316Jny3MrrdKKIQ5JeOD_OjgYwTsxLMFU1xwgImXztdjLoUcO5mewGW7qgx7FZgWS1Tlw8O_UcnQQLGRLZPRDbU0w/s1600/anonymous3.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2aYFHsdswZeHU7HV-0MLgBTun-GpMz2ekU5Otg_EpqI2fkKRXbazHPC0Pr28xF01v-s3KjTwSQhweWh1i5p86v4CSP2B92izRWbW3uzIx0PrzOroN1aX4wq5j7QOQzXtESMZ3rLodKVCL/s1600/blogger-user.png
That's it!
If you liked this post, please consider sharing it.
No comments:
Post a Comment