Skip to content

Instantly share code, notes, and snippets.

@vbtechsupport
Last active December 26, 2015 22:59
Show Gist options
  • Save vbtechsupport/7226597 to your computer and use it in GitHub Desktop.
Save vbtechsupport/7226597 to your computer and use it in GitHub Desktop.
corrected disqus code
<div class=disqusbox>
<div><hr />
<p><strong>View or Post Comments</strong></p>
</div>
<div id="disqus_thread"><form onsubmit="my.loadDisqus();return false;" class=formBlock><input class=cmd type=submit value="Discuss"> <input class=cmd type=submit value="Feedback"> <input class=cmd type=submit value="Comments"></form></div>
<script>
var disqus_shortname = "yourdisqus_shortname";
// provide the following in the template, if necessary
// var disqus_url = "http://yourghostblogdomainname/";
var disqus_identifier = '{{id}}';
var my = my || {};
my.loadDisqus = function() {
var dsq = document.createElement('script');
dsq.type = 'text/javascript';
dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
};
</script>
<noscript>Please enable javascript to <a rel="nofollow" href="http://disqus.com/?ref_noscript">discus this page, powered by Disqus.</a></noscript>
<style scoped=scoped>
@media print{
.disqusbox{display:none}
}
</style>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment