I've installed the Disqus comments plugin, and I see that it works fine with 'off-the-shelf' themes. However, I'm creating my very own custom theme, and Disqus doesn't show up at all in my theme. Maybe that's because I've not done anything to enable comments in my theme, such as adding comments theme support in my functions.php file, or comments-specific code in my index.php or single.php files. I (naively) assumed the Disqus plugin would handle everything.

Perhaps if I learn how to code my theme to support basic comments, the Disqus plugin would then work. I haven't tried that yet because I'm worried it might be a 'wild goose chase'. I'd greatly appreciate if anyone could push me in the right direction with some advice on how to 'attack' this issue. Thank you in advance.

closed as off-topic by Michael, Jacob Peattie, cjbj, Jack Johansson, kraftner Nov 14 '17 at 15:48

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.


Disqus replaces the comments_template() function, which is normally responsible for outputting comments into a template. So as long as your single template uses comments_template() for displaying comments, Disqus should be able to take over that section of the template and handle comments itself.

  • Thanks, I'm trying to use comments_template() in single.php, but Disqus is still not overriding it somehow. I uploaded my code here: wordpress.stackexchange.com/questions/285693/… – dimery2006 Nov 12 '17 at 20:57
  • Under Disqus settings, changing the 'External Java Script Files' and 'Template Conflicts' checkboxes seems to have worked. I haven't had time to figure out why it worked. – dimery2006 Nov 13 '17 at 1:33
  • Are you using wp_head() and wp_footer() in your theme? Scripts won't load if you don't, and as far as I can tell that setting tells it not to properly enqueue a script the WordPress way and just load it on the page. Enqueueing scripts requires wp_head() and wp_footer(). – Jacob Peattie Nov 13 '17 at 12:28
  • wp_footer worked. This is the solution that was missing. – dimery2006 Nov 15 '17 at 1:47

Not the answer you're looking for? Browse other questions tagged or ask your own question.