You could try editing the relevant template file and, where you see:
<?php comments_popup_link([...]); ?>
add <?php if('open' == $post->comment_status) : ?> immediately before this tag and <?php endif;?> immediately after. The whole thing should then look like:
<?php if('open' == $post->comment_status) : ?><?php comments_popup_link([...]); ?><?php endif;?>
Thread Starter
pattip
(@pattip)
I am probably looking in the wrong place, but I am unable to find that particular line.
Thread Starter
pattip
(@pattip)
This is the closest I could find. Can anyone help? Thanks!
<?php else : // this is displayed if there are no comments so far ?>
<?php if (‘open’ == $post->comment_status) : ?>
<!– If comments are open, but there are no comments. –>
<?php else : // comments are closed ?>
<!– If comments are closed. –>
<p class=”nocomments”><?php _e(‘Comments are closed’,’panorama’) ; ?></p>
<?php endif; ?>
<?php endif; ?>
Try removing:
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments"><?php _e('Comments are closed','panorama') ; ?></p>
(@pattip)
16 years, 9 months ago
How would you go about removing the text “comments are closed” from a WordPress ready to use page?
Thanks!