How to Turn Off WordPress Comments?

9 minutes read

To turn off WordPress comments on your website, you can follow these steps:

  1. Log in to your WordPress dashboard.
  2. From the left-hand menu, navigate to "Settings" and click on "Discussion".
  3. In the "Default Post Settings" section, uncheck the box that says "Allow people to submit comments on new posts".
  4. Scroll down to the "Other Comment Settings" section.
  5. Uncheck the options that say "Allow link notifications from other blogs" and "Allow people to post comments on new articles".
  6. Optionally, you can also disable comments on previously published posts. To do this, go to the "Posts" section and select all the posts you want to edit.
  7. Using the "Bulk Actions" dropdown menu, choose "Edit" and click the "Apply" button.
  8. In the "Comments" dropdown, select "Do not allow".
  9. Click the "Update" button to save the changes.
  10. You have successfully turned off comments on your WordPress website. Visitors will no longer see an option to comment on your posts or pages.

Best WordPress Books of November 2024

1
WordPress: The Missing Manual: The Book That Should Have Been in the Box

Rating is 5 out of 5

WordPress: The Missing Manual: The Book That Should Have Been in the Box

2
WordPress All-in-One For Dummies (For Dummies (Computer/Tech))

Rating is 4.9 out of 5

WordPress All-in-One For Dummies (For Dummies (Computer/Tech))

3
WordPress Explained: Your Step-by-Step Guide to WordPress (2020 Edition)

Rating is 4.7 out of 5

WordPress Explained: Your Step-by-Step Guide to WordPress (2020 Edition)

4
Professional WordPress: Design and Development

Rating is 4.5 out of 5

Professional WordPress: Design and Development

5
WordPress Plugin Development Cookbook: Create powerful plugins to extend the world's most popular CMS, 2nd Edition

Rating is 4.4 out of 5

WordPress Plugin Development Cookbook: Create powerful plugins to extend the world's most popular CMS, 2nd Edition

6
WordPress 5 Complete: Build beautiful and feature-rich websites from scratch, 7th Edition

Rating is 4.3 out of 5

WordPress 5 Complete: Build beautiful and feature-rich websites from scratch, 7th Edition

7
Building Web Apps with WordPress: WordPress as an Application Framework

Rating is 4.2 out of 5

Building Web Apps with WordPress: WordPress as an Application Framework

8
WordPress for Beginners 2020: A Visual Step-by-Step Guide to Mastering WordPress (Webmaster Series)

Rating is 4 out of 5

WordPress for Beginners 2020: A Visual Step-by-Step Guide to Mastering WordPress (Webmaster Series)


Can I hide the comment form while keeping comments enabled?

Yes, it is possible to hide the comment form while keeping comments enabled on certain platforms or websites.


Here are a few ways you can achieve this:

  1. CSS: You can use CSS to hide the comment form by adding a CSS rule to the appropriate element. For example, if your comment form has an ID of "comment-form", you can add the following CSS rule to hide it:
1
2
3
#comment-form {
   display: none;
}


  1. JavaScript: You can also use JavaScript to hide the comment form. You can either add an inline script directly in your HTML or use an external JavaScript file. Here's an example of how you can hide the comment form using JavaScript:
1
document.getElementById("comment-form").style.display = "none";


  1. Theme or Plugin Settings: Certain website platforms or content management systems (such as WordPress) may have built-in options or settings to hide the comment form while keeping comments enabled. Check the theme or plugin settings to see if there is an option to hide the comment form.


Remember to test your changes to ensure that comments are still enabled and functioning as expected after hiding the comment form.


How can I disable comments across the entire WordPress site?

To disable comments across your entire WordPress site, you can follow these steps:

  1. Access your WordPress admin dashboard by navigating to "yoursite.com/wp-admin" and logging in.
  2. Go to "Settings" in your WordPress dashboard menu and click on "Discussion."
  3. In the "Default article settings" section, uncheck the option that says "Allow people to post comments on new articles."
  4. Scroll down to the "Other comment settings" section and make sure all the checkboxes are unchecked.
  5. Click on the "Save Changes" button at the bottom of the page to apply the changes.


By following these steps, comments will be disabled for all new articles/posts on your WordPress site. However, it's worth noting that if you already have published articles/posts, comments may still be enabled on those. To disable comments for existing content, you can follow these additional steps:

  1. Go to "Posts" or "Pages" (depending on where your content resides) in your WordPress dashboard menu.
  2. Select all the posts or pages where you want to disable comments (or use the "Bulk Actions" dropdown to select all).
  3. From the "Bulk Actions" dropdown, choose "Edit" and click the "Apply" button.
  4. In the "Comments" section, choose the "Do not allow" option and click the "Update" button.


This process will disable comments for the selected posts or pages.


Alternatively, you can also use a WordPress plugin called "Disable Comments" to globally disable comments on all existing and future content. Here's how:

  1. Install and activate the "Disable Comments" plugin from the WordPress plugin repository.
  2. Go to "Settings" in your WordPress dashboard menu and click on "Disable Comments."
  3. On the plugin's settings page, choose the "Everywhere" option under "Disable Comments."
  4. Click on the "Save Changes" button to apply the changes.


The "Disable Comments" plugin will handle disabling comments across your entire WordPress site, including existing and future content.


How can I redirect users when they try to submit a comment?

To redirect users when they try to submit a comment, you can follow these general steps:

  1. Identify the appropriate code or script in your comment submission process where you want to redirect the user.
  2. Determine the logical condition that triggers the redirect. For example, you might want to redirect users after they successfully submit a comment, or in response to certain actions or input.
  3. Use server-side or client-side programming languages to implement the redirect. Here are a few examples using popular programming languages: a. PHP: You can use the PHP header() function to redirect users. Place the following code where you want the redirect to occur: b. JavaScript: To redirect users using JavaScript, you can use the window.location.href property. Place the following script where you need the redirect: c. HTML: You can also use HTML's meta tag to accomplish a redirect. Place the following code within the head section of your HTML: d. Other programming languages likely have their own mechanisms for redirecting users as well.
  4. Adjust the URL in the redirect code to match the destination page you want users to be redirected to.


Remember to place the redirect code in the appropriate location within your code or script to achieve the desired effect.

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

Related Posts:

There are times when you need to disable comments on your WordPress site. There are two cases contextual to disabling WordPress comments: Disabling comments for individual posts and pages Disabling comments completely Disabling comments for individual WordPr...
To remove spam comments from a pending list in WordPress, follow these steps:Log in to your WordPress dashboard.Click on "Comments" in the left-hand menu.In the Comments section, you will see a list of all pending comments.To identify spam comments, lo...
Have you came across that annoying moment, when commenters start posting plethora of unwanted and irrelevant links in comments? WordPress users who experience a lot of comment spam can filter out spam through Akismet. But sometimes, such spam comments bypass a...