Personal Blog

How do I remove “Comments are closed.” from WordPress Posts?

If you want to turn off the comments feature on WordPress posts you may do so by:

Posts -> Quick Edit -> Uncheck “Allow Comments”.

But, WordPress still displays the words “Comments are closed.” at the foot of the page. The way to remove this is to edit the content of comments.php in your theme (or preferably your Child Theme).

If you want to remove “Comments are closed.” from WordPress Posts

Comment out the following lines in comments.php

elseif('open' != $post->comment_status && !is_page()) {
theme_post_wrapper(array('content' => '<p class="nocomments">' . __
('Comments are closed.', THEME_NS) .'</p>'));

No longer will “Comments are closed.” be displayed on any WordPress Post.