Deprecated: Required parameter $location follows optional parameter $post_types in /home1/mybravet/public_html/wp-content/plugins/monarch/monarch.php on line 3783

Warning: session_start(): Session cannot be started after headers have already been sent in /home1/mybravet/public_html/wp-content/themes/Divi Child Theme/header.php on line 1
How To Remove “Comments are closed” in WordPress | WordPress Developer Philippines How To Remove “Comments are closed” in WordPress | WordPress Developer Philippines
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