Tag Archive - disqus

Disable DISQUS comments for WordPress pages

When using DISQUS for managing WordPress comments, even when disabled, the DISQIS div is added to all pages. This can’t be disabled in the settings. This quick and dirty hack removes the div.

Open up wp-content/plugins/disqus-comment-system/comments.php and add this if-statement around the block div-block.

<?php if(!is_page()) { ?>
 
<div id="disqus_thread">
    <div id="dsq-content">
        <ul id="dsq-comments">
            // code removed in this example
        </ul>
    </div>
</div>
 
<a href="http://disqus.com">blog comments powered by <span>Disqus</span></a>;
 
<?php } ?>

The is_page() function is what does the trick.