Forums
Forums / Plugin: Disqus Comment System / remove comment_count.js
(@mobiflip)
8 years, 1 month ago
how can I disable loading comment_count.js on single pages? I only need it in archives. (Disqus Version 3.0.9)
comment_count.js
(@ryanv12)
We can change the way that works, feel free to open an issue here https://github.com/disqus/disqus-wordpress-plugin
If you’re comfortable doing so, you can also open a pull request. I’m thinking for this kind of condition we’d have to add a custom action that you could call, but might come up with something easier.
Is it possible to deactivate the script completely? Then I would simply insert it manually into the archives.
I’m adding a filter that you should be able to hook into for custom loading logic, I’ll get back to you when that’s done
(@brevityness)
3.0.12 is now out, includes a custom filter that allows you to not load count.js on certain pages. Documentation here https://github.com/disqus/disqus-wordpress-plugin#dsq_can_load
The topic ‘remove comment_count.js’ is closed to new replies.