How do i get rid of the comments are closed sentence at the bottom of pages?
How do i get rid of the comments are closed sentence at the bottom of pages?
With the help of the Template Hierarchy article, determine what Template is displaying your Pages, then look at the template for the code that does that -- typically theme designers use comments_popup_link to display comments/comments closed.
is it just on the single post? My single.php template has code like this
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
<a href="#respond">Leave a comment</a>.
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site.
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
You can skip to the end and leave a response. Pinging is currently not allowed.
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
Both comments and pings are currently closed.
So you can just find the appropriate text and remove it.
I'm not sure if it's a single post or not.
This topic has been closed to new replies.