WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Tutorials» How to Completely Disable Comments in WordPress (Ultimate Guide)

How to Completely Disable Comments in WordPress (Ultimate Guide)

Last updated on May 9th, 2019 by Editorial Staff
503 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
How to Completely Disable Comments in WordPress (Ultimate Guide)

Are you wondering how to turn off WordPress comments? While comments are a great way to interact with your site visitors, some website owners don’t want to allow comments on their site.

Thanks to WordPress, you have the ability to either disable comments on specific posts, pages, custom post types, or even completely remove comments from your entire website.

In this article, we’ll show you the step by step process on how to disable comments in WordPress.

How to Completely Disable Comments in WordPress

Why Disable Comments in WordPress?

Many small business owners use WordPress to create their website. These business websites often doesn’t have a blog section and mostly has static pages like services, about us, contact, etc. In such cases, it doesn’t make sense to allow comments at all.

In other cases, bloggers may publish certain posts like announcements that they don’t want to allow comments to trolls. In these cases, you can easily disable comments on those specific posts or pages.

The other scenario is some business blogs choose to disable comments entirely to prevent spam. Although you can always use spam protection techniques (which we’ll share later in this article), disabling the comment section will definitely solve the problem.

Whatever your reason may be, you can certainly disable comments and even remove the comment section from your WordPress site.

Here’s a quick overview of what you’ll learn in this article:

  • Disable Comments on Future Posts
  • Disable Comments on a Specific Page or Post
  • Disable Comments on Pages and Posts in Bulk
  • Delete All WordPress Comments
  • Disable Comments on Media
  • Disable WordPress Comments Sitewide using a Plugin
  • Remove “Comments are closed” in WordPress
  • Spam Protection Techniques

The first few methods will explain how you can disable comments on pages, posts, or media without using a plugin. We’ll later explain how to remove the comment section from your WordPress site with the help of a plugin.

With that said, let’s take a look at various ways to disable comments in WordPress.

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

Disable Comments on Future Posts

If you’ve just started your WordPress site, you can easily stop comments on your future posts.

To do that, go to Settings » Discussion from the left sidebar of your WordPress admin panel.

On this page, you need to uncheck the option that says “Allow people to post comments on new articles” and then click on the Save Changes button to store your settings.

Disable comments on future posts

This will disable comments on all your future posts. However, if you want to allow or disallow comments on a specific post, then you can still do it without changing this setting.

We’ll cover that in the next section.

Disable Comments on a Specific Page or Post

By default, comments are turned off on all your pages.

However, WordPress gives you the freedom to enable or disable comments on individual pages and posts.

Simply head over to Pages » All Pages from the left sidebar. On the next page, you need to hover your mouse cursor over the title of a page that you want enable or disable comments and click the Edit link.

WordPress Page edit option

On the top-right corner of your page, you’ll see the 3 vertical dots icon. You need to click on it to open a dropdown menu and then click on Options.

This will open a popup box, and you need to make sure the Discussion box is enabled here.

Page document options

Once you close this modal box, you’ll see the Discussion meta box on the right side of your editor. If you don’t see it, then please make sure that you click on the Document tab to view it.

Discussion meta box

Now, you can uncheck the Allow Comments box to disable comments on this page and click on Update to save the changes.

On the other hand, if you want to selectively enable comments, then you can just check the box to enable it for certain pages.

You can follow the same process for turning off comments on individual posts or other custom post types.

Disable Comments on Pages and Posts in Bulk

Want to disable comments on all your published posts and pages without doing it individually? You can do that without the use of a plugin.

First of all, go to Posts » All Posts to see all your articles.

Next, select all the posts, choose Edit from the Bulk Actions dropdown box, and click on Apply.

Edit Posts in bulk

You’ll now be able to perform bulk actions including changing the author name and turning off comments for all the selected posts.

Select Do not allow from the comments dropdown box and click on Update. This will disable comments on all your selected posts.

Disable comments on posts in bulk

You can follow the same process to turn off comments on your pages.

Delete All WordPress Comments

While the above methods will disable comments on your posts and pages, it will not remove the existing comments from your WordPress site.

To delete all the comments from your site, click on Comments from the left sidebar of your admin panel.

Delete all WordPress comments

Next select all the comments, choose Move to Trash option from the Bulk Actions dropdown box, and click on Apply. This will delete all the existing comments from your site.

If your website has a lot of comments, then you will have to repeat this step multiple times.

Disable Comments on Media

If you are looking to disable comments on media pages, then there are two ways to go about it.

You can either manually disable comments on individual media attachment files by following the methods we discussed above but that can be really time consuming.

The easier way to bulk disable comments on all media attachments is by using a code snippet. Simply paste the following code in your theme’s functions.php file or a site-specific plugin.

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 );

In case you’re not comfortable with the above solution, you can check out the next section where we’ll show you how to use a plugin to disable comments on Media attachments.

Disable WordPress Comments the Easy Way Using a Plugin

If you don’t want to disable comments manually, then you can use the Disable Comments plugin to do it with just a click.

It allows you to completely disable comments everywhere on your WordPress site. You can also disable them on specific post types like posts, pages, media, and others. It also removes the comment form and stops displaying existing comments.

Disable Comments Plugin

First thing you need to do is install and activate the Disable Comments plugin. You can follow our step by step guide on how to install a WordPress plugin for detailed instructions.

After activating the plugin, head over to Settings » Disable Comments from the left sidebar of your admin panel.

Selecting the first option allows you to disable comments on your WordPress site. The plugin will also remove the comments menu item from your WordPress admin area.

Disable Comments Plugin Settings

Using the second option, you can selectively disable comments on your posts, pages, or media.

If you want to remove comments only from the media attachments, then you can select On certain post types radio button and then check the Media checkbox.

You can do the same if you only want to turn off comments on WordPress pages. Using the plugin is the easiest way to disable comments on WordPress pages.

When you’re done, simply click on the Save Changes to complete the process.

Remove “Comments Are Closed” in WordPress

If your WordPress theme is not checking the comment status properly, then it may still display the comment form, existing comments, or even show the “Comments are closed” message.

You can ask your theme developer to fix this because this is not a standard compliant approach.

Alternatively, you can also try fixing it yourself by following the instructions below.

First, connect to your WordPress site using FTP Client or the File Manager in your WordPress hosting control panel. Now navigate to your current theme folder which will be located in /wp-content/themes/ folder.

In your theme folder, you need to locate the file comments.php, right-click on that file, and rename it to comments_old.php.

Rename comments php file

Next, you need to right-click in the right panel of your FTP client and select Create new file option. And then, name your new file as comments.php and click the OK button.

Create a new comments file

This trick simply serves an empty comments template to your WordPress theme, so no comments or comment related messages will be shown.

If your WordPress theme does not have the comments.php file, then you need to ask your theme developer which file you need to edit.

Spam Protection Techniques

If you’re planning to disable WordPress comments just for the sake of protecting your site from spammers and link builders, then we would rather recommend you to use some of the following techniques to combat spam.

Akismet

Akismet WordPress Plugin

Akismet is one of the best plugins for dealing with spam comments. And the best part is it has been built by the team behind WordPress.

This plugin checks each comment on your site and verifies whether it’s spam or not. For more details, you can check out our guide on the Akismet plugin.

Closing Comments

Did you know that you can close comments after a certain period of time?

Close comments after a specific period

Head over to Settings » Discussion and check the field that says “Automatically close comments on articles older than 14 days”.

This will close the comments form after 14 days automatically. You can also change the number of days based on your needs.

Typically spammers target older posts, so several users change this setting to 180 days which significantly reduces spam.

Honeypot with Antispam Bee

On WPBeginner, we have found it helpful to add a second plugin called Antispam Bee which works alongside with Akismet to significantly reduce comment spam on your site.

It adds an invisible honeypot that blocks 99% of spam bot comments.

Comment Captcha

Though adding a captcha to your comment form is not user-friendly, it still helps you to protect your site from spammers.

You can use the Advanced noCaptcha and Invisible Captcha plugin to add Google reCaptcha just before the submit button of your comment form.

Remove Website URL Form Field

Another way to deal with link builders and spammers is to remove the website URL field from the comment form. Here’s an example from the WPForms website:

Remove Website URL field from comment form

And you can use the Comment Link Remove and Comments Tool plugin for this purpose. It allows you to remove the website URL field from your comment form without touching a single line of code. Isn’t that great?

Blocking Bad IPs

You can also block bad IP addresses from accessing your WordPress site. This will help you to block spammers and hacking attacks.

To do that, you can check our guide on how to block IP addresses in WordPress.

Anyways, we hope this detailed guide helped you to understand how to completely disable comments in WordPress with and without using a plugin.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

503 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

  • Revealed: Why Building an Email List is so Important Today (6 Reasons)

    Revealed: Why Building an Email List is so Important Today (6 Reasons)

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

  • How to Start Your Own Podcast (Step by Step)

    How to Start Your Own Podcast (Step by Step)

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

36 Comments

Leave a Reply
  1. MARYA says:
    Mar 3, 2021 at 2:11 am

    How can I disable the comment box on a single product page?

    Reply
    • WPBeginner Support says:
      Mar 3, 2021 at 10:11 am

      On the product page when you are editing it in the admin area of your site there would be the option to disable comments.

      Reply
  2. Mario Noliya says:
    Dec 13, 2020 at 10:30 pm

    I have disabled comment from setting>discussion but still comment is visible on previous posts. how can i remove these on previous post or what is the manual process to remove these comments

    Reply
    • WPBeginner Support says:
      Dec 14, 2020 at 11:52 am

      You would either want to use the plugin or manually update the old posts and pages to disable the comments.

      Reply
  3. Engela Edwards says:
    Nov 21, 2020 at 12:35 pm

    Thank you. Your directions and screen shots were very clear and easy to follow. I am grateful for your help.

    Reply
    • WPBeginner Support says:
      Nov 23, 2020 at 11:47 am

      Glad our guide was helpful :)

      Reply
  4. Harry says:
    Oct 23, 2020 at 8:53 am

    The comment section/box is a form. You just need to disable it. You can do this through Appearance > Customization > Additional CSS. Just right-click and inspect your comment box to find its id or class (you actually need to find the id or class of its correct parent div). Then you disable like this:

    #idname { display: none; }

    Evidently, “idname” is the name of the correct id you’ve found.

    For example, if you inspect this very comment box, you’ll see that it’s a element and it has a element as a parent. Then if you go up you see this p element is a descendant of a form, which is a child of a div with a “respond” id. If you hide this div, you’ll see that this comment section disappears.

    Reply
    • WPBeginner Support says:
      Oct 23, 2020 at 10:24 am

      While this is technically an option if none of the other options work, it does not remove the comment form it only hides it which means it can still be found by spam tools that crawl pages for the comments section.

      Reply
  5. Javed says:
    Sep 21, 2020 at 3:10 pm

    suprer helpful.

    Reply
    • WPBeginner Support says:
      Sep 22, 2020 at 10:17 am

      Glad you found our guide helpful :)

      Reply
  6. zanu says:
    Aug 21, 2020 at 3:32 am

    Nice And Great Article post it is very helpful and useful for me Thanks For Sharing

    Reply
    • WPBeginner Support says:
      Aug 21, 2020 at 10:24 am

      You’re welcome :)

      Reply
  7. Sam says:
    Feb 19, 2020 at 9:49 am

    Very helpful, ty!

    Reply
    • WPBeginner Support says:
      Feb 20, 2020 at 9:31 am

      You’re welcome :)

      Reply
  8. Moosa Khan says:
    Jan 10, 2020 at 9:15 am

    Thanks to its are very helpfull

    Reply
    • WPBeginner Support says:
      Jan 10, 2020 at 9:46 am

      Glad our article was helpful :)

      Reply
  9. robrt smith says:
    Dec 23, 2019 at 8:00 am

    I think employing a plugin was an honest idea if your website has many posts and much of latest ones coming daily except for a little blog or sites, it are often done manually.

    Reply
    • WPBeginner Support says:
      Dec 23, 2019 at 11:05 am

      You’re correct, if you’re just starting and never want comments then you can do this manually. The plugin is mainly for if removing comments was decided later :)

      Reply
  10. M S says:
    Dec 22, 2019 at 10:50 am

    Thank you for a very clear and easy to follow tutorial.
    My only question however would be, how to I stop the words ‘no comment’ appearing next to each post?
    Thank you.
    M.

    Reply
    • WPBeginner Support says:
      Dec 23, 2019 at 11:08 am

      It would depend on where this is located. If you reach out to your theme’s support they should be able to let you know what options they have available.

      Reply
  11. Craig Ancel says:
    Dec 14, 2019 at 5:06 pm

    Hi,

    This was very simple, clean, clear way to help me disable post comments on my site!

    Great work

    Reply
    • WPBeginner Support says:
      Dec 16, 2019 at 10:41 am

      Thank you, glad you found our content helpful :)

      Reply
  12. Sowjanya says:
    Nov 5, 2019 at 1:43 am

    Good article thanks for the article
    Keep sharing

    Reply
    • WPBeginner Support says:
      Nov 5, 2019 at 10:36 am

      Glad you like our article :)

      Reply
  13. Labib Muahammad Jamal says:
    Oct 28, 2019 at 12:19 pm

    Thank you
    Keep it up.
    :)

    Reply
    • WPBeginner Support says:
      Oct 29, 2019 at 9:48 am

      You’re welcome, we’ll keep writing articles :)

      Reply
  14. mobileninja says:
    Jul 16, 2019 at 4:12 am

    It is a very good way.

    Reply
    • WPBeginner Support says:
      Jul 16, 2019 at 10:55 am

      Glad you like our recommendation :)

      Reply
  15. Manish Sharma says:
    May 13, 2019 at 11:50 am

    I think using a plugin was a good idea if your website has lots of posts and lots of new ones coming daily but for a small blog or sites, it can be done manually.

    Reply
    • WPBeginner Support says:
      May 13, 2019 at 2:28 pm

      That is another option, the plugin is to ensure someone does not forget to disable the comments on a post

      Reply
  16. Marya says:
    May 10, 2019 at 9:08 am

    It is a good tutorial and article. Thank you

    Reply
    • WPBeginner Support says:
      May 10, 2019 at 11:13 am

      You’re welcome :)

      Reply
  17. Alice Elliott says:
    May 10, 2019 at 6:38 am

    Why you should be encouraging people to close or disallow comments on their blogs and websites beats me! This may be necessary for pages, but certainly not for posts! We should be encouraging commenting as much as possible, and educate them in spam moderation and how to overcome trolling behaviour. Even the simple ability to close comments after a number of days will keep the spammers down to a minimum. But closing comments completely is an absolute no-no.

    I note you don’t allow URLs with your commenting – so I will not be benefiting from this comment in any way apart from expressing my disgust!

    Reply
    • WPBeginner Support says:
      May 10, 2019 at 11:39 am

      It is a personal preference for if someone should use comments. If someone lacks the time or does not want to have comments on their site, this is an option for them. This guide is to show them how to do it, not recommending it for every site :)

      Reply
    • Manish Sharma says:
      May 13, 2019 at 11:44 am

      I don’t want visitors to comment on my site even on my posts.
      Imagine a job posting site… you probably don’t want to see comments below every job post but for a blog like wpbeginner comment makes sense.

      It depends on the type of website. and…

      Links in comments generate lots of spam sometimes even they are nofollow some people or bots just want to post a link in the comment for improving their SEO rankings.

      Reply
    • Dave says:
      Oct 25, 2019 at 1:56 pm

      Alice, The majority of my clients are corporations using WordPress as a CMS, oftentimes using Posts for a News section or the like. They have no interest in engaging readers via a comment section. That’s what they use Facebook and Twitter for, and it’s why they publish their WordPress content to those platforms. It only makes sense to shut down the commenting feature completely.

      Not every WordPress site is a personal blog.

      Reply

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
All in One SEO
Improve website SEO rankings with AIOSEO plugin. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2021 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2021)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2021)
    • SiteGround Reviews from 4464 Users & Our Experts (2021)
    • Bluehost Review from Real Users + Performance Stats (2021)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2021 – Step by Step Guide
Deals & Coupons (view all)
ConvertKit Coupon Code
ConvertKit Coupon
Get a 14-day no risk FREE trial with this powerful email marketing software.
Beaver Builder Coupon Code
Beaver Builder Coupon
Get the best possible price on this easy drag-and-drop page builder plugin. From just $99 in 2020.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).

Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
  • Growth Fund
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon
  • AIOSEO

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress Security by Sucuri.