Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disqus comments not loading on all articles #204

Closed
mclearc opened this issue Jul 24, 2015 · 3 comments
Closed

Disqus comments not loading on all articles #204

mclearc opened this issue Jul 24, 2015 · 3 comments

Comments

@mclearc
Copy link

mclearc commented Jul 24, 2015

I'm having this weird problem where Disqus loads on some article pages but not others. I can't see any relevant difference between them. Any ideas? Thanks!

@mclearc
Copy link
Author

mclearc commented Jul 24, 2015

So I pasted the following into the two pages that were not loading comments

<div id="disqus_thread"></div>  
 <script type="text/javascript">  
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'YOUR_DISQUS_SHORTNAME'; // required: replace example with your forum shortname

/* * * DON'T EDIT BELOW THIS LINE * * */
(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 view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>

After which I ran a local server, and lo, the comment section showed up. I then deleted the above, saved the file, and pushed the changes to github and now comments show on the website. I don't know what that was all about, but things seem to be working. I'll close the issue, but if you think you have any idea what happened I'd be curious to hear.

@mclearc mclearc closed this as completed Jul 24, 2015
@GuneetKohli
Copy link

The same thing is happening to me now. I tried copy pasting the code into the .html file for the two articles but it's not working.

@mclearc did you ever get any clarity on this?

@mclearc
Copy link
Author

mclearc commented Sep 19, 2016

@GuneetKohli I never was sure what happened her. But there are a variety of places where things could've gone wrong, including on Disqus's end. So I'd say, check your publishing settings to be sure that they are correct. Make sure there is nothing off with the syntax of your pages, and then publish and pray. I will say that I haven't faced this problem since.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants