Directly below are adverts, if you find this website useful, please visit our sponsors links.


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.

Leave a Reply

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

*


+ 6 = 7

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>