COS-Blog

How to enable threaded comments on your COS blog

Last updated: October 6, 2015

To enable HubSpot’s threaded comments feature on an older COS blog you’ll need to make a few modifications to the blog’s post template layout. First, navigate to Content > Content Settings > Blog > Templates and locate the name of the template you’re currently using for your blog (if you have 2 template options look for the one marked Template for Blog Posts).

User-added image
User-added image

Once you know the template in use navigate to Content > Design Center > Template Builder and locate that template in the list (it should be under Template Layouts > Custom > Blogs in a subfolder, or within the Coded Template Files under the custom folder > Blog section)

Locate the Blog Content module in your template > click the gear icon on the right-hand corner > click Edit Options > and scroll into the Blog post body template HTML box until you find the start of the comments code {% if comments|length %} highlight the text from that line all the way down to the end of the comments block where it says {%endif %) (this should be directly after a tag that looks like this <!—end comment form -- >) . Once the block is highlighted click the backspace button to delete it. Once you’ve removed the code block click Done.

To add the threaded comment ability click Add row on the template > once the module is added click the gear options > click Swap Module > Select the Blog Comments module from the list of options to highlight it > click Select to add it to the template > reorder the comments module under the Blog Content module of your template > click Update on your template to finish.

User-added image
User-added image