Wordpress like Threaded Commenting in Blogger for Custom Templates

Blogger added threaded commenting to its dynamic blogger templates, you can refer its official blog to know how to activate the Wordpress like Threaded Commenting. This feature was bot available for custom templates.
Blogger did not gave any information oh how to use this feature in custom templates. No worries.. Other blogger experts have made it work in custom blogger templates too, just by replacing some codes in your custom blogger template.

Preview:

How to add Threaded Commenting in Custom Blogger Templates

1. Go to Dashboard, Select Edit HTML
2. Check "Expand Widget Templates"
3. Search for the below code
    1. <b:if cond='data:blog.pageType == &quot;item&quot;'>  
    2.   <b:include data='post' name='comments'/>  
    3. </b:if>  
    4. Replace it with
      1. <b:if cond='data:blog.pageType == &quot;static_page&quot;'>   
      2.      <b:if cond='data:post.showThreadedComments'>   
      3.             <b:include data='post' name='threaded_comments'/>   
      4.          <b:else/>   
      5.            <b:include data='post' name='comments'/>   
      6.          </b:if>   
      7.       </b:if>   
      8.       <b:if cond='data:blog.pageType == &quot;item&quot;'>   
      9.          <b:if cond='data:post.showThreadedComments'>   
      10.            <b:include data='post' name='threaded_comments'/>   
      11.          <b:else/>   
      12.            <b:include data='post' name='comments'/>   
      13.       </b:if>   
      14.  </b:if>  
       Now save the Template. You are Done :)

      No comments:

      Post a Comment