Stencil themes have the ability to integrate with Disqus, a third-party commenting system that allows users to leave blog comments on blog posts made with Stencil’s built-in blog. Disqus can also be used on Stencil product pages to allow comment and review threads on individual products.
To use Disqus blog comments in Stencil, follow the steps below:
- Log in to your BigCommerce control panel.
- Navigate to Channel Manager > Edit storefront settings.
- For non-MSF storefronts, navigate to Storefront.
- Click on Themes > Advanced > Edit Theme Files for your theme.
- Navigate to Templates > Pages > blog-post.html.
- Paste your Disqus Universal Code before the closing
{{/partial}} tag.
- Save your files.
- Apply your theme.
- Log in to your BigCommerce control panel.
- Navigate to Channel Manager > Edit storefront settings.
- For non-MSF storefronts, navigate to Storefront.
- Click on Themes > Advanced > Edit Theme Files for your theme.
- Navigate to Templates > Pages > product.html.
- Paste your Disqus Universal Code before the closing
{{/partial}} tag.
- In the Disqus Universal Code that you have posted, there is a function that reads like below:
Change the value of this.page.url to be product.url, and the value of this.page.identifier to be product.id, so that the function now reads like below:
- Save your files.
- Apply your theme.