WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. takien
    Member
    Posted 2 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.
    Thanks.

    http://wordpress.org/extend/plugins/disqus-comment-system/

  2. takien
    Member
    Posted 2 years ago #

    how

  3. PavelS
    Member
    Posted 1 year 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.

    http://wordpress.org/support/topic/using-different-comment-system?replies=6#post-2750872

    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

About this Topic