Categories

Featured templates

WordPress. How to remove “Comments are Closed” text

Amina Freinger November 19, 2014
Rating: 5.0/5. From 3 votes.
Please wait...

WordPress. How to remove “Comments are Closed” text

This tutorial is going to show you how to remove ‘Comments are Closed’ text from posts in WordPress templates.

comments_are_closed1

If you disable comments in the WordPress admin panel, you will see Comments are Closed text in all posts. Unfortunately, you can not remove that text via the admin panel. You should perform the following steps to delete it from the code:

  1. Connect to your FTP account or open File Manager and go to /wp-content/themes/CherryFramework. You will find comments.php file there. Copy this file to /wp-content/themes/themeXXXXX folder (where XXXXX is the number of your theme).

    IMPORTANT: DO NOT perform changes in files from the “/wp-content/themes/CherryFramework” folder, because all your changes will be lost after the Cherry Framework update.

  2. Open comments.php file from the /wp-content/themes/themeXXXXX folder in any code editor and delete the following part of code on the line 34:

      <?php echo ‘<p class=”nocomments”>’ . theme_locals(“comments_are_closed”) . ‘</p>’; ?>
      

    NOTE: Always make a copy of the file that you are going to edit. It will help you to reverse your changes easily if you need it.

  3. Save changes in the file. Refresh the page to check changes on your site. We can see ‘Comments are Closed’ text was removed successfully.

This is the end of the tutorial. Now you know how to remove ‘Comments are Closed’ text from posts.

Feel free to check the detailed video tutorial below:

WordPress. How to remove “Comments are Closed” text

Fully Responsive Wordpress Themes
This entry was posted in WordPress Tutorials and tagged closed, comments, remove, WordPress. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket