Adding Comments to Articles
Some customers want each of their knowledge base articles to have commenting functionality on each article, to allow for discussion or questions from their visitors on a per-article basis.
While HelpSite doesn't currently offer a fully built-in commenting feature, you'll be happy to hear that it is possible to add commenting functionality using a 3rd party service like Disqus that can easily integrate into HelpSite using our Custom HTML feature.
Here are instructions on how to add
Here's how:
- Signup for a Disqus account
- In HelpSite, go to Customize > Layout & HTML > Article Page > Check "Use a custom layout" (if you haven't already)
- Paste the snippet below at the bottom
- The only part of this code snippet you need to modify is "YOUR_DISQUS_SHORTNAME"
That's it! Now your articles should all have commenting functionality.
<div id="disqus_thread"></div>
<script>
// Disqus comments
// https://disqus.com/admin/universalcode/#configuration-variables
var disqus_config = function () {
this.page.url = '{{article.url | escape}}';
this.page.identifier = '{{article.id}}';
};
(function() {
var d = document, s = d.createElement('script');
s.src = 'https://YOUR_DISQUS_SHORTNAME.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>If you have any trouble or questions, please get in touch!