Skip to content
Home » How to Disable Comments in WordPress: The Definitive Guide

How to Disable Comments in WordPress: The Definitive Guide

Disable Comments in WordPress

Comments are a great way to engage with your readers and get feedback on your blog posts, but sometimes you may not want them enabled.

Maybe you’re getting too many spam comments, or maybe you just don’t have the time to moderate them. Whatever the reason, this guide will show you how to completely disable comments in WordPress.

Disable Comments in WordPress: The Definitive Guide

There are two ways to disable comments in WordPress. You can either do it globally, which will turn off comments on all posts and pages, or you can disable them on individual pieces of content.

If you want to completely disable comments on your entire WordPress site, there are a few different ways you can do this.

  • One way is to go to the Settings ยป Discussion page
  • Uncheck the box next to “Allow people to post comments on new articles”.
  • You can also disable comments completely by adding a line of code to your WordPress configuration file.
  • Just add this line:
define('WP_POST_REVISIONS', false);

This will disable comments completely on your site. Keep in mind that if you do this, you will not be able to re-enable them without removing the code from your configuration file.

If you want to disable comments on individual posts or pages, there is an option for that as well.

  • Just edit the post or page.
  • Scroll down to the “Discussion” section.
  • From here, you can uncheck the box next to “Allow comments”.

That’s all there is to it! Disabling comments in WordPress is really easy, and it only takes a few seconds. Just remember that if you completely disable comments, you will not be able to re-enable them without adding some code back into your configuration file.

So if you’re not sure, it’s probably best to just disable comments on individual posts or pages.

Do you have any questions about disabling comments in WordPress? Let us know in the comments below.

Read More: How to Add Animated Gifs in WordPress

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *