Remove «Comments are closed» message

Getting annoyed with the «Comments are closed»-message on Posts and Pages where you have shut off the comment option? It’s easy to remove. Here’s how:

Edit the relevant file(s) in your theme, usually single.php and page.php.


<?php comments_template(); ?>

And replace with:

<?php if('closed' != $post->comment_status) comments_template(); ?>

That’s it – «Comments are closed» is history.

1 thought on “Remove «Comments are closed» message

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.