Disqus Comment System
How to disable disqus script on Homepage (4 posts)

  1. takien
    Posted 4 years ago #

    I want to disable/remove script rendered by disqus on homepage and archive page, since I don't use widget (recent comment, etc). I think that script is not necessary and could decreases page speed.


  2. takien
    Posted 3 years ago #


  3. PavelS
    Posted 3 years ago #

    Yes, i think this is important too.

    It's very bad that plugin developers dont think about that (

  4. It's been 5 months since I looked at that plugin, but the Disqus comment plugin can be disabled using a filter that identifies what/where the reader is.

    For an example of that code in your theme's functions.php file see this post.


    I'm on a train right now but take a look at that post. See the line that reads

    if( $id == 123 ) {

    Change the if( $id == 123 ) to test for your home or archive page and the Disqus comment system won't be used for those conditions.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Disqus Comment System
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic