I’m using this plugin to generate a static version of one of my sites. However, I’m having issues with Disqus. I’ve got the Disqus plugin working just fine on my site, however it’s not working when I generate the static content.
On looking at the post html file, I see the following:
<div id="disqus_thread"></div>
…and not the full Disqus code. Does this mean that I need to add the Disqus code to every article that I create manually? Or is there a way to automate this?
When integrating Disqus for a static site, you’ll want to use their custom JavaScript implementation, rather than their WordPress plugin. Just add this once in your WP theme’s template code and it will render correctly on every page of the static site.
(@anonymized-9588130)
8 years ago
Hi,
I’m using this plugin to generate a static version of one of my sites. However, I’m having issues with Disqus. I’ve got the Disqus plugin working just fine on my site, however it’s not working when I generate the static content.
On looking at the post html file, I see the following:
<div id="disqus_thread"></div>…and not the full Disqus code. Does this mean that I need to add the Disqus code to every article that I create manually? Or is there a way to automate this?
Thanks,
Kev