Skip to content

4 methods to disable comments in WordPress: How and why to do it

Héctor de Prada
¿Con qué tipo de clientes no deberías trabajar siendo diseñador web? ¿Cómo los puedes reconocer? Te lo contamos.

WordPress is a very popular and versatile content management platform that allows users to create websites easily. One of the most notable features of WordPress are the comments, which allow visitors to interact and share their opinions on posts. However, in certain cases, it can be beneficial to disable comments. In this article, we will explore the topic of disabling comments in WordPress, why it might be necessary, and how to do it correctly.

Importance of comments in WordPress

Comments play a crucial role in creating a community and enriching content on a WordPress website. They allow visitors to express their thoughts, ask questions, provide feedback, and establish connections with other users. Additionally, comments can increase engagement and improve your website’s visibility in search engines.

Why disable comments in WordPress?

Although comments can be beneficial in many cases, there are situations where disabling them may be appropriate. Some common reasons to disable comments in WordPress are:

  1. Spam reduction: Open comments can attract spam and unwanted content. Disabling comments can help prevent a flood of spam and maintain the quality of content.
  2. Time saving: If your website receives a large number of comments and you don’t have the resources to moderate them, disabling comments can save you time and effort.
  3. Focus on content: In some cases, you want visitors to focus on the main content without being distracted by comments. Disabling comments allows you to focus attention on the content itself.

Methods to disable comments in WordPress

Fortunately, WordPress offers several ways to disable comments on your website. Below, we will explore four different methods that you can use:

Method 1: Discussion settings in WordPress

The simplest method to disable comments is to use the built-in discussion settings in WordPress. Here are the steps to follow:

  1. Log in to your WordPress admin panel.
  2. Navigate to “Settings” and select “Discussion”.
  3. Uncheck the option “Allow people to comment on new posts”.

Method 2: Using a Plugin

Another option is to use specific WordPress plugins that allow you to disable comments more advancedly. Some of the popular plugins for this task are “Disable Comments” and “Akismet“.

Method 3: Editing the functions.php file

If you have experience with editing files in WordPress, you can disable comments by editing the functions.php file of your current theme. Here are the steps to follow:

  1. Access your WordPress admin panel and navigate to “Appearance” and then “Editor”.
  2. In the right sidebar, look for the “functions.php” file and click on it to edit it.
  3. Add the following code at the end of the file: add_filter('comments_open', '__return_false');
  4. Save the changes.

Method 4: Disable comments only on specific pages

If you want to disable comments only on certain pages of your website, you can do so selectively. Follow these steps:

  1. Edit the page where you want to disable comments or create a new page.
  2. Scroll down to the discussion section and uncheck the “Allow comments” box.

How does disabling comments affect SEO?

A common concern when disabling comments in WordPress is how it may affect the SEO (Search Engine Optimization) of your website. It’s important to consider the following:

  • Quality content remains essential: Even if you disable comments, it is still important to create quality content that attracts search engines and visitors.
  • Less load and improved load time: Disabling comments can reduce the load on your server and improve your website’s load time, which is a significant factor for SEO.
  • More focus on keywords: Comments can sometimes create a general semantics that blurs the article, positioning you for words that are not your topic.
  • Interaction and retention: One of the disadvantages of disabling comments is the decrease in page retention and interaction with users. The ability to interact and read the opinions of other users creates a more human and authentic experience. Many users like to know what others think or what comments they have left on a particular article, which generates debates and increases the time they spend on the page.

Conclusions

Disabling comments in WordPress can be a valid option in certain situations. If you want to reduce spam, save time, or focus on the main content of your website, disabling comments can be beneficial. Remember to use the appropriate methods, such as the WordPress discussion settings or specific plugins, to ensure that comments are effectively disabled. Also consider the effects on SEO and keep a focus on content quality.
In addition to disabling comments in WordPress, it is important to consider other strategies to optimize your website. One of these strategies is image optimization, which can help improve your site’s load speed and user experience. If you want to learn more about how to optimize images in WordPress, I recommend you check out our comprehensive guide on the topic. In it, you will find useful tips and tools to reduce the size of your images without compromising quality. Don’t miss this valuable information to improve your website’s performance! You can check out the complete guide here: Guide to optimizing images in WordPress

Frequently Asked Questions

What happens to existing comments when I disable the comments option?

When you disable comments, the existing comments on your site will still be visible, but no new comments can be added.

Can I disable comments only for unregistered users in WordPress?

Yes, in the comments settings section in WordPress, you can select the option to “Automatically close comments on older articles” to allow comments only for a certain period of time. You can also require users to be registered and logged in to comment, which will limit comments to registered users.

What is the easiest way to disable comments in WordPress?

The easiest way to disable comments in WordPress is by going to the comments settings section and unchecking the option “Allow people to post comments on new entries”.

What plugins can I use to disable comments more advancedly?

There are several plugins available in WordPress that allow you to disable comments more advancedly. Some popular examples are Disable Comments, Disable Comments WP, and Akismet (which also helps fight comment spam).

Autor
Héctor de Prada
Cofounder & CEO at ModularDS
Almost 10 years working with WordPress in more than 100 different projects. Since 2022 he attends and enjoys as many WordCamps as he can. Always open to talk with other web professionals.

Subscribe to our Newsletter about the web world