Tuesday, July 3, 2012

How to Add Profile Images to Blogger Comments

Today I will show you how easy it is to have Blogger (Blogspot) display profile images in the embedded comments section of your blog even if you are using a custom template.

About a month ago Blogger announced that it was enabling profile images (profile avatars) in the embedded comments section on Blogger (Blogspot) as part of its 10th birthday feature series. The new profile image feature which has been available on other commenting options has now been extended to the embedded comments option. This is good news if you are using a default template as you will now see a small avatar next to your visitors comments and your own avatar if you have uploaded a profile image.



Default Blogger Templates - Enabling Profile Images
Profile images work on default Blogger templates and have been automatically enabled by Blogger. If you are using a default Blogger template with embedded comments enabled and have recent comments on a post you will see a profile image to the left of visitor comments (provided they have uploaded one that is). Your profile avatar will also display when you respond to visitor comments again provided you have uploaded one. (To upload your profile photo click on Add Photo at the Dashboard). If profile images are not displayed enable them by going to Settings > Comments and checking the Yes radio button at the bottom of the page which says Profile Images Enabled.

Custom Blogger Templates - Enabling Profile Images
If you are using a custom template you may still be able to see profile images in your embedded comments section. Check out Settings > Comments to make sure Profile Images are enabled. If you can't see profile images you can still add this feature by tweaking your Blogger template. Follow the instructions below to have Blogger display profile images in the embedded comments section of your custom Blogger template.

Add Profile Images to Comments Section of a Custom Blogger Template
If you are using a custom Blogger template you can use the following method to add profile images to the embedded comments section of your Blogger template.

  1. Login to Blogger if not already logged in
  2. Go to Design > Edit HTML
  3. Back up your Blogger template as a precaution by downloading the full template to your computer
  4. Expand Widget Templates by checking the box on the right hand side.
  5. Find the following line in your Blogger template by using CTRL + F:
  6. <dl id='comments-block'>
  7. Change the above line to the following:
    <dl expr:class='data:post.avatarIndentClass' id='comments-block'>
  8. Scroll down a few lines and find the following line in your Blogger template:
    <a expr:name='data:comment.anchorName'/>
  9. Directly before the above line paste the following code block:
    <b:if cond='data:comment.favicon'>
    <img expr:src='data:comment.favicon' height='35px' style='margin-bottom:-2px;' width='35px'/>
    </b:if>
    <a expr:name='data:comment.anchorName'/>
    <b:if cond='data:blog.enabledCommentProfileImages'>
    <data:comment.authorAvatarImage/>
    </b:if>
  10. Click Save Template
  11. Click View Blog and navigate to a page with commenting to see avatars next to comments in the embedded comments area
Tips and Troubleshooting
  • If you have added the author commenting highlight hack to your Blogger template there will be 2 instances of the code at Step 7 to change
  • If your template does not have the code mentioned in Step 5 and Step 6 check that dl has not be replaced by div. In this case leave the div as is and replace the rest of the code in the line.
  • Blogger has only enabled profile images for Blogger and Google profiles so if your visitors comment using identities such as "Anonymous" or "Name/URL" their image profile will not be displayed. If OpenID, AIM or other identities are used these favicons will be displayed instead.
  • Profile avatars load last so they will not prevent visitors viewing your content if you have a lot of comments on some pages

In today's Blogger tutorial (Blogspot tutorial) you have learned how to enable profile images in the embedded comments section in Blogger. If you are using a default Blogger template this can be achieved by enabling profile avatars in your Blogger template. If you are using a third party custom template I have shown you a Blogger hack that will display profile images next to comments on your blog. As always I am interested in how you get on with this tweak. Good luck!

    Random Posts...!!!

  • How to Add Missing Quick Edit Wrench to Blogger
    How to Add Missing Quick Edit Wrench to Blogger
    29/06/2012 - 0 Comments

    type="html">In this Blogger tutorial (Blogspot tutorial) I show you how to add a quick edit wrench to…

  • AdWords Keyword Tool high CPC Categories
    AdWords Keyword Tool high CPC Categories
    02/03/2012 - 1 Comments

    Most expensive keywords categories - Part I Make most of your blog by finding the highest paying keywords…

  • Submit Your Website/Blog to Bing
    Submit Your Website/Blog to Bing
    28/08/2013 - 0 Comments

    Our blog’s 70% of the traffic comes from the Google and rest of all comes from the social networks and blog…

  • Why Blogger is Better and Easy for You
    Why Blogger is Better and Easy for You
    11/08/2012 - 0 Comments

    As blogging continues to rise in popularity more and more blogging platforms are being introduced for hosting…

  • How to use Social Media Effectively for SEO
    How to use Social Media Effectively for SEO
    07/08/2012 - 3 Comments

    Social media has grown from a niche trend to the face of the web, and the ingredients of a good SEO campaign…

  • Add a Customized Three Column Footer Widget In Blogger
    Add a Customized Three Column Footer Widget In Blogger
    21/09/2013 - 0 Comments

    You might have seen a three column widget at the bottom section of many commercial and professional blogs.…

  • How to Add Admins to Google Plus Page
    How to Add Admins to Google Plus Page
    14/10/2013 - 0 Comments

    Google+ makes it easier now for larger companies to manage their Google plus business pages by allowing you…

  • Over-Optimized Sites will be Penalize from Google's Algorithm Update
    Over-Optimized Sites will be Penalize from Google's Algorithm Update
    24/09/2012 - 0 Comments

    During a SXSW panel, Matt Cutts, head of Google's search spam team, announced that Google has been working…

If You Enjoyed This Post Please Take 5 Seconds To Share It!

0 comments:

Post a Comment

Please feel free to comment on this topic.

horizontal random post

    Random Posts...!!!

  • Blogging And Email Marketing A New Approach
    Blogging And Email Marketing A New Approach
    27/08/2012 - 0 Comments

    Email marketing is powerful because it allows you to develop personal relationships with your blog readers.…

  • Blogger Search Description - Meta search description
    Blogger Search Description - Meta search description
    28/03/2012 - 4 Comments

    Finally, Blogger introduces the new "Meta tags description" and "Search description" to individual pages…

  • How to Add Internal Links Within Blogger Posts
    How to Add Internal Links Within Blogger Posts
    02/07/2012 - 1 Comments

    Each link identifier needs to be enclosed in inverted commas. Make sure to match up the correct identifier…

  • Add Meta Tags to Blogger for Better SEO
    Add Meta Tags to Blogger for Better SEO
    04/10/2013 - 0 Comments

    Today i going to share Meta Tags For Blogger For SEO. This is my first post on SEO.Meta tags have prime…

  • Google Code Hosting for Free
    Google Code Hosting for Free
    14/09/2012 - 0 Comments

    Hosting on Google Code is for every professional and beginner blogger/webmaster ho needs a suitable hosting…

  • Fix Favicon Visibility in Internet Explorer For Blogger
    Fix Favicon Visibility in Internet Explorer For Blogger
    08/06/2012 - 1 Comments

    Favicon is really a 16 X 16 small graphic icon that appears within your browser address bar beside a web…

  • Ways to create backlinks that Google loves
    Ways to create backlinks that Google loves
    19/09/2012 - 0 Comments

    Backlinks is the most important factor in the ranking of a website on the search engines like Google, Yahoo,…

  • How to start Google Adsense Affiliate Program - Review
    How to start Google Adsense Affiliate Program - Review
    21/04/2012 - 1 Comments

    How Google Affiliate Ads WorksThe Google Affiliate Ads program is like AdSense but you are able to chose your…