Ultimate guide to How to Completely Disable Comments in WordPress
- beingwpthemes
- Aug 16, 2019
- 4 min read
When you create a Wordpress website, there are so many things that you should consider. One of the most important things you consider is how your site content communicate with the site audience. WordPress gives the option of allowing comments on posts and pages, which shows how your content interacts with your audience.
Many small website owners use WordPress in order to build their website. these websites often don't have a section for blog and usually has status pages such as about us, terms & conditions, Contact, privacy policies, etc. So, it makes no sense to grand comments for such pages.
In some cases, bloggers might publish some small post to make an announcement that they prohibit comments to stop trolls. In such cases, one can simply disable comments on those particular pages and posts.
In some cases, bloggers choose to disable comment section to prevent spam. Though, they can use spam protection methods, disabling the comments will surely solve the issue.
From the above whatever your reason might be, you can entirely disable comments and can also remove that particular section from your website.
Disable Comments on a Specific Page or Post
WordPress allows you to enable or disable comments on individual posts and pages. Follow the below-mentioned process to Disable Comments on a Specific Page or Post;
Open your WordPress dashboard, from the left sidebar click on "Pages".
Select " All Pages", after that head to the page you want to edit and then click on the " Edit" section next to the post/page you want.

The following step depends on the type of editor you use, like Classic editor or Gutenberg editor.
Using Classic Editor

If you use Classic editor, as you open the post, hover your cursor to the top-right corner of the WordPress dashboard, then press on the three vertical dots symbol.
Now you will see the dropdown menu, from there click on "options", now you will see 2 sections in the dropdown menu one is "General and the other is " Document Panels".
Click on the "Document Panels" Now you can see the "Discussion" section on your screen.

Now, all you do is to uncheck allow comments box to disable the comments.
Using Gutenberg:
Open your WordPress dashboard, now click on the "Posts". On the right corner of your screen, you will see a small sidebar. Select the "Discussion" then uncheck the 'allow comments" section and you're done.
Disabling Comments on Pages or Posts in Bulk
If you want to disable comments on entire pages and posts without doing it manually? You can do this with the use of a plugin.
All you do is to open your Dashboard first. You can see the "Posts" section click on it. Now you can see the "All Posts" section to see your published articles.
Now, select the number of posts you want to disable comments for, after selecting the posts, click on the "bulk Actions" from the dropdown menu and click on the "Edit" option then move your cursor to "Apply" button and click on it.

Now you can perform bulk actions like disabling comments for the posts you want, changing the name of the author, etc.

From the comments dropdown menu, Choose Do not allow and click on the update button. Now, this will turn off comments on all your selected pages or posts.
Disable Comments on media
If you want to turn off comments on your social media pages, then this can be done in two different ways.
One is to do it manually and the other by using a code snippet.
If you go for Manually option, then it will take your time. So it is better to opt for the second method " Using Code Snippet". This is the simplest and time-saving way of disabling comments on media pages.
To do this, simply copy and paste the below-given code in your site-specific plugin or functions.php file.
function filter_media_comment_status( $open, $post_id ) { $post = get_post( $post_id ); if( $post->post_type == 'attachment' ) { return false; } return $open;}add_filter( 'comments_open', 'filter_media_comment_status', 10 , 2 );
Delete all the comments
While the above-mentioned method is to turn off the media page comments. However, this will not delete the old comments from your website. If you want to delete the comments from your entire WordPress website then follow this procedure.

Open your WordPress dashboard, now click on the "Comments" section. Now one by one select all the comments and then select "Bulk Actions" option from the dropdown menu click the "Move to Trash" option. As you click on the "Move to Trash", all comments will get deleted from your website.
Remove “Comments Are Closed” in WordPress
In case, your Wp theme is not reviewing the comment status then it might show the existing comments, the comment form, or "Comments are closed" message.
Don't worry, as you can also solve this issue on your own.
To get free from this problem, Connect to your website using the file manager or FTP client.

Now open your current theme folder which is located in /wp-content/themes/ folder. Navigate for the file named " Comments.php" to rename it. As you found it change the name of the file to "commnets_old.php".
As you finish renaming it, create a new file, name it "comments.php". this will now remove that "Comments are closed" message.
Disabling Comments with a Plugin

You're just now setting up your site, disabling comments is easy. Open the “Settings” tab from the left sidebar, and select “Discussion”. Then, simply uncheck the box next to “Allow people to post comments on new articles” and save your changes.
Disable Comment in New WP Site

If you have just built a new WordPress website and want to turn off the comments, then it is really going to be a simple process for you. Simply, Follow the below-mentioned process:
Go to Dashboard, take your cursor to the left sidebar and click on the "Settings" tab. from "Setting" click on the "Discussion" tab. Now you can see the 4 different sections, Uncheck the " Allow people to post comments on new articles" and you're done.
Our Best Recommandation
Comentários