Monday, January 13, 2014

How to Enable Threaded Comments in Customized Blogger-Blogspot Templates

Blogger-Blogspot has recently introduced much-awaited feature of threaded commenting. Now, users can reply to a comment and the comment owner will get an email notification. Naturally, I was also excited about it so, I enabled this feature on my heavily customized template. But it didn't work. I was lucky enough to have an old backup file of Simple Blogger-Blogspot template. After doing some coding, I found it quite easy to integrate the threaded comments in the Simple Blogger-Blogspot template. Please note that this is not a properly tested tutorial. Your template might have different codes. So, follow the steps carefully.

Steps to Enable Threaded Comments in Blogger-Blogspot


  • First of all make sure that your blog feed is set to Full. You can confirm that by going to Settings > Other and then selecting Full from the Allow Blog Feed dropdown.
  • You must also have embedded comment form enabled. Check that by going to Settings > Posts and Comments and check the Comment Location dropdown.

  •  After that, open the Template section.

  • Warning: Backup your current template before moving on.
  • Click the Edit HTML button.
  •  A new window will open. You'd have to click the Proceed button to start editing.
  • Check Expand Widget Templates option.
  • Find the following line of code:

 
Once you've found the above line, you'll see this piece of code:
 Now, we need to add some code just BEFORE the above code. The code to add is:
 













 
 
After adding the new code, overall code should look like this: 


















 

  •  Now, we need to find the following piece of code:











 
and REPLACE the above code with the following one:



















  • Click Save template and then Close button.
 


  • Check your blog. If you can see the option of Reply under each comment then
    threaded commenting is enabled. Otherwise, upload your backup template.

No comments:

Post a Comment