Select Page

When you closed the leave a comment feature in WordPress instead of a comment form you will see “Comments are closed” and it can be annoying sometimes. Here is tip to remove this text.

Go to your themes folder and locate these pages single.php or page.php and when you find them open it in your favorite text editor and comment out where it say

if (comments_open()) or if (!comments_open()) and you will see the Comments are close below this condition you will only comment out the code the displays the text like for example below.

if ( ! comments_open() ) :
 <p><?php //_e( 'Comments are closed.', 'twentyten' ); ?></p>
<?php endif; // end ! comments_open() ?>

I commented out this line //_e( ‘Comments are closed.’, ‘twentyten’ );

How to comment:  //code or /* code */

Pin It on Pinterest

Share This