The blogosphere is buzzing with the news that the Blogger commenting system has been upgraded to include a function for threaded comments. But like most new Blogger features it doesn't work for every template particularly custom ones so today I'm going to show you how to fix that problem and it is super duper easy. I'm assuming that you've already checked in settings that your comment form is embedded and that you've set your feed to full feed. Oh and don't forget to back up your template before editing code. You should always back up your template before making design changes.
Navigate to Dashboard-Template-Edit HTML-Proceed.
Tick the Expand Widget Templates box at the top.
Find each occurence of the the following code (CTRL+F is the quickest way to do this) :
<b:include data='post' name='comments'/>
Replace with:
<b:if cond='data:post. showThreadedComments'>
<b:include data='post' name='threaded_comments'/>
<b:else/>
<b:include data='post' name='comments'/>
</b:if>
Save your Template ...
Congratulations! You should now be able to utilise the new threaded comments facility in Blogger.
But that fix won't work for everyone so if your one of those that it doesn't work for try the following fix.
Navigate to Dashboard-Template-Edit HTML-Proceed and again click on expand widget template. Find the following code.
<b:if cond='data:blog.pageType == "item"'>
<b:include data='post' name='comments'/>
</b:if>
Replace with the code below.
<b:if cond='data:blog.pageType == "static_page"'>
<b:if cond='data:post.showThreadedComments'>
<b:include data='post' name='threaded_comments'/>
<b:else/>
<b:include data='post' name='comments'/>
</b:if>
</b:if>
<b:if cond='data:blog.pageType == "item"'>
<b:if cond='data:post.showThreadedComments'>
<b:include data='post' name='threaded_comments'/>
<b:else/>
<b:include data='post' name='comments'/>
</b:if>
</b:if>
Hit save.
These solutions will fix the problem for the majority of blogs but for some people it won't work. Just putting that out there. Good Luck!
Thank you for this! Disqus has been such a headache lately, so this is like an answer to all my prayers. :)
ReplyDeleteThis doesn't work on my blog~ I tried both
ReplyDelete