Adnan Causevic

Researcher focusing on Software Testing, Testing in Agile, Developer Testing

Octopress Disqus Plugin Not Working in Chrome

Did you experienced that Disqus plugin for Octopress is not working in the Chrome browser? By not working I mean that you can see the “Comments” heading but not the actuall field to provide any comments.

Problem is that my website is using https:// and not http:// protocol, and Chrome will prevent that any third party website is openned using http:// urls. You can notice this prevention in Chrome with small shield icon displayed at the end of the url text field.

Fix is rather simple. Locate source/_includes/disqus.html file in your octopress folder, and modify line 17 from this:

      dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script;

to this:

      dsq.src = 'https://' + disqus_shortname + '.disqus.com/' + disqus_script;

Voila…

Comments