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.

Find:

<?php comments_template(); ?>

And replace with:

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

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

One thought on “Remove «Comments are closed» message

Leave a Reply

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