How to Disable Comments On WordPress Pages & Posts

When you create pages on a WordPress blog, there is no option to disable comments. You can hide comments on WordPress pages easily by using this tutorial. When you publish new pages, default comments on pages will be allowed. If you are creating an About page, privacy policy page, or other pages, comments would be enabled and users would be able to comment there.

What Are Comments?

Comments are responses that are left on a blog post by readers. They appear below the body of the blog post content. Readers can leave a comment by typing into a comment form and submitting it. Their comment will then show up (after approval if moderation is turned on).

Comments allow two-way communication between the blogger and the audience. Readers can provide feedback, ask questions, or start a discussion about the topic. Bloggers can reply to comments, answer questions, or participate in the discussion. This interaction helps build community and loyalty with readers.

Why Are Comments Important?

Here are some of the key reasons why allowing and encouraging comments is important:

  • Feedback – Comments provide valuable reader feedback about your content. You can find out what resonates with readers, what could be improved, and what topics they want you to cover.
  • Audience engagement – Comments allow you to engage your readers in a conversation. This helps build a relationship and community rather than just broadcasting content.
  • SEO – Comments can help your search engine optimization when the discussion is on topic. It signals that readers find your content valuable enough to comment on.
  • User-generated content – Comments create fresh content for your blog. Valuable discussion in the comments essentially generates new content for your site.
  • Sources – Commenters often provide useful sources, links, and recommendations related to the post topic in their comments. This gives you new sources to reference or link to in future posts.
  • Promotion – Comments get your blog and content circulating across the web. When readers comment on your site, it leaves a backlink that helps introduce new readers to your blog.

Here is a quick guide on How to Disable Comments on WordPress pages & posts easily.

How to Disable Comments On WordPress Pages

Well, you have to go to pages from your WordPress dashboard, there you will see a number of pages you have created. Hovering the mouse on the page’s title, you will see a quick edit option.

How to Disable Comments On WordPress Pages

Click on the quick edit link and your page’s description and details will be expanded. At marked pace, you would see allow comments option. if you have checked that option, comments will be accepted from that particular page.

If you have removed the checkmark from there, comments will be disabled for that specific page. Similarly, you can disable comments for all pages if you want. If you want to disable or enable comments for specific WordPress pages, you can do it from there.

Disabling comments from all Pages using the WordPress page.php file :

Go to appearance > Edit option from your WordPress dashboard. Find the page.php file and there look for “<?php comments_template(); ?>”  Delete that line from your page.php file. it would disable all WordPress Comments On Pages.

How to Disable comments on WordPress posts

If you are receiving too many spam comments on your blog, you should use WordPress anti-spam plugins to prevent spam comments. However, if you are still not satisfied with it and disable all comments from your entire blog including blog posts, pages, and attachments, you can do it by following tutorials.

Using WordPress Plugin

Disable Comments The WordPress plugin would globally disable comments on their site. Comments can be disabled according to post type. You can not use this plugin to block comments on the specific page but to disable comments from the entire blog, you can use it.

This is because it removes all comment-related fields from edit and quick-edit screens. This would set WordPress to Disable All Comments on your blog.

Disable comments on old pages

Well, if you want to disable comments from older posts, you can do it right from your WordPress dashboard. Refer to the screenshot provided here, and go to setting > Discussion from your WordPress dashboard.

Disable Comments from Old WordPress Posts

Now uncheck the option that says allow people to post comments on new articles. This would disable comments on upcoming posts and articles you are going to publish.

If you want to remove the comment box from old blog posts, you can check the option that says automatically close comments on articles older than X days. Set the number of days after which you want to disable comments. E.g. if you have written 7 days, it would remove the comment box from your blog on all articles older than 7 days.

Disable Comments from Specific Posts

If you do the setting above, it will affect globally on your blog. But if you want to disable comments for specific blog posts, you can do it by the following settings.

Disable Comments from WordPress Posts pages

Go to post >All posts from your WordPress dashboard. Now there, hovering the mouse over the posts option, you would see a quick edit option.

Click on that option and you will see the specific post details there. Uncheck the option that says allow comments. This would remove the comment box from your WordPress blog specifically for that post only.

Using the function.php file

You can use the Dfactory tutorial to remove or disable comments from your WordPress blog. You need to add the provided code in your function.php file to remove all comments on your blog. It is recommended that you take a backup of your function.php file or backup WordPress blog before changing anything in the WordPress theme file.

Why You Should Disable Comments

There are a number of reasons why users might want to disable comments on their websites or blogs:

  • To reduce spam. Comments sections can be a magnet for spammers, who often leave irrelevant or even malicious comments. Disabling comments can help to reduce the amount of spam on a website or blog.
  • To improve the quality of the conversation. Comments sections can sometimes be filled with negative or off-topic comments. Disabling comments can help to improve the quality of the conversation and make a website or blog more welcoming for visitors.
  • To protect their privacy. Some users may not want their personal information to be publicly displayed in the comments section. Disabling comments can help to protect their privacy.
  • To maintain control over the content on their website or blog. Some users may want to maintain complete control over the content that is published on their website or blog. Disabling comments can help them to do this.

Here are some specific examples of situations where users might want to disable comments:

  • A business owner who is running a website for their company may not want to allow comments on their blog posts, as they may not want to deal with negative or off-topic comments from customers.
  • A personal blogger who is writing about sensitive topics such as their personal life or their mental health may not want to allow comments on their blog posts, as they may not want to be subjected to negative or judgmental comments from readers.
  • A website owner who is running a news website may not want to allow comments on their articles, as they may not want to deal with spam or off-topic comments from readers.

Ultimately, the decision of whether or not to disable comments is a personal one. There are both pros and cons to consider, and the best decision will vary depending on the individual user’s needs and goals.


Final Words

All methods mentioned here are the easiest method to Disable Comments On WordPress blogs, pages, attachments, etc. Please comment below with your review about any method you have used from above.