Problems showing disqus comment box for articles with no comments

Hello,

There is a problem showing the Disqus comment box in articles which have no comments yet. However, for articles which have already comments the Disqus comment box is showing. We would like that the Disqus comment box appears always, so people can comment to any of the articles of our blog. Could you please help us?

Here there's a link of an article with no comments (I attach an image where you can see the comment box is not showing):
http://new.marcelodena.com/blog/2015/09/cosas-que-admiro-de-los-holandeses-y-gustaria-tener.html

Here it is the link of an article which have 4 comments (I attach an image where you can see that the disqus comment box is showing):
http://new.marcelodena.com/blog/2014/01/ejemplo-de-acta-de-reunion.html

Thanks in advance,
Marcel Odena

  • Adam Czajczyk
    • Support Gorilla

    Hello Marcel,

    I hope you're well today and thank you for your question!

    Could you please elaborate a bit on how did you add the Disqus comments to your site? There's an JS error related to Disqus embed scripts and I'd like to know how Disqus was implemented on the site in order to be able to fully replicate the issue on my test box and hopefully provide with a solution.

    Please advise!
    Best regards,
    Adam

  • Marcel Odena
    • Site Builder, Child of Zeus

    Hello Adam,

    Thanks for your interest. I installed the Disqus plugin as the normal procedure to install plugins. Once installed I configured my Disqus credentials and that's all. The current version installed is the 2.85, I attach an image where you can see it. If you need me to grant access please let me know.

    I hope this is what you need, otherwise, please tell me.

    Thanks,
    Marcel Odena

  • Predrag Dubajic
    • Support

    Hi Marcel,

    Apologies for the delay here, it looks like Disqus doesn't play well with the Upfront themes so I was doing some further testing and I think I have a solution for you.

    Go to your single post and start Upfront editor.
    Remove the comments section completely and in its place add Code element.
    In code element select Embed 3rd Party Code and add this code to it:
    <div id="disqus_thread"></div>

    Save the changes for all posts of this type and that should be it.

    Let us know how it goes.

    Best regards,
    Predrag

  • Marcel Odena
    • Site Builder, Child of Zeus

    Hi Predrag,

    Thanks for your help and no worries about the delay, it's OK.

    I followed the steps you explained in my website and It works fine if when I save the changes I apply them to the single post. In this case the disqus box is showing (congrats for this part), you can see it in this post (I still left the other comment box):
    http://new.marcelodena.com/blog/2015/09/cosas-que-admiro-de-los-holandeses-y-gustaria-tener.html

    But It does not work if when I save the changes I apply them to "ALL POSTS", in this case the disqus box does not appear. Moreover, when I enter in the article with the upfront editor the "third party code" box have disappeared.

    So, I guess I could go post by post and apply the patch but I don't think this is very handy. I hope you find the issue.

    If you need acces, just let me know.

    I attach screenshots of all the process I follow where you can see it.

    Thanks,
    Marcel Odena

  • Predrag Dubajic
    • Support

    Hi Marcel,

    I tested this on another one of my installations and it all works fine, and I even tried disabling the disqus scripts in plugin settings and then including it all with code element like this:

    <div id="disqus_thread"></div>
    <script type='text/javascript' src='http://marcelodena.disqus.com/disqus.js'></script>
    <script type='text/javascript' src='http://marcelodena.disqus.com/count.js'></script>

    It worked on post I added it to but again not on others.

    I'm not sure why this is happening on your installation and would suggest performing a conflict test with this kind of setup by disabling your plugins to see if it works after that.

    Best regards,
    Predrag

  • Marcel Odena
    • Site Builder, Child of Zeus

    Hi Predrag,

    I deactivate all the plugins and it does not work either. So what's next?

    I attach some screenshots.

    I did not activate the plugins yet, just in case you want to take a look at the state of the site now. Please tell me when to activate the plugins again and grant access again (the wpmudev dashboard is now deactivated).

    Regards,
    Marcel Odena

  • Predrag Dubajic
    • Support

    Hi Marcel,

    I'm still not sure why this is happening on your installation but it looks like it's happening only on specific posts and the code from my previous comment works fine when I save for that specific post.

    I also tested with new post and there it's working normally when you publish it.

    So it looks like only way now would be to edit each of your existing posts, remove BOTH code and comment element, add new code element and add this code:

    <div id="disqus_thread"></div>
    <script type='text/javascript' src='http://marcelodena.disqus.com/disqus.js'></script>
    <script type='text/javascript' src='http://marcelodena.disqus.com/count.js'></script>

    It will take bit more time to update ~40 posts but it should be all fine after that to new posts.

    Best regards,
    Predrag

  • Marcel Odena
    • Site Builder, Child of Zeus

    Hi Predrag,

    I edited each of my existing posts and added a box with the code you provided (and delete the old ones) and everything is allright now. So the problem is solved.

    Thanks a lot for your help.

    Regards and happy week end!
    Marcel Odena

  • TNNVTR
    • Site Builder, Child of Zeus

    Guys,

    Thanks for the information on this post!

    This solution does not work IF you have a security certificate and the Disqus plugin network-enabled—yes, WordPress Multisite.

    PROBLEM

    The plugin defaults to HTTP and there is no way to make it use HTTPS even though Disqus has some nifty instructions.

    After some blood and tears, lol, I found out how to make it work WITHOUT uninstalling the Disqus plugin which I am using on two other sites AND with UpFront Fixer:

    1. Log off the Disqus profile via the plugin configuration.
    2. Turn off the plugin.
    3. Go to a post and add a custom code draggable area.
    4. Add the following code:

    <div id="disqus_thread"></div>
    <script type="text/javascript" src="https://USERNAME.disqus.com/disqus.js?https"></script>
    <script type="text/javascript" src="https://USERNAME.disqus.com/count.js"></script>

    5. Save and make sure you check the "only this post" option.

    Check it out: https://phantbox.com/blog/what-is-phantbox/.

    The "?https" portion on the first script forces Disqus to load 100% HTTPS.

    NEW POSTS

    I only have one post but I honestly do not think that is it efficient to add this code manually: what if someone has 200 blog posts?

    What I did and have to still see if it works is to create a global region I have assign to "all posts." The trick should work, we will see.

    I hope this helps someone out there!

    TNNVTR

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.