12 Jan 2012

Blogger’s threaded commenting on custom template blogs

Update: Blogger has an official post about this.

Blogger today introduced the long-awaited threaded commenting feature.  It may not work for you even after enabling embedded comment form if you have manually customised your template.  Fear not, enabling threaded commenting on your custom template is not that hard :)

Go through your blog’s template and change all occurrences of
<b:include data='post' name='comments'/>
to
<b:if cond='data:post.showThreadedComments'>
  <b:include data='post' name='threaded_comments'/>
<b:else/>
  <b:include data='post' name='comments'/>
</b:if>
(Make sure you have enabled the “Expand Widget Templates” check box; you may not see the text to be replaced otherwise.)  This change will add a “Reply” link after each comment on your blog.

2 comments:

  1. Hi,
    I added this code 2 days back and just found out that the site gets hanged in IE when any link is clicked. So just removed it, can you please check so that I can again add the code back?

    ReplyDelete
  2. Hi Sharmilee, IE freezing with threaded commenting is a known issue (see http://www.simplebloggertutorials.com/2012/01/blogger-threaded-comments-internet.html). You can either apply the fix this blog suggests or wait for Blogger to release a fix. Hope this helps.

    ReplyDelete