Have you ever been concerned about your site’s WordPress Disable Comments?
As you know, the comment operating system stands as an important part of almost every site. It can let your viewers comment on posts to boost integration with customers and has some other advantages. However, you can choose not to use this function on your website. If you don’t intend to use it, you can disable it. It will help you remove one unnecessary function, boost the page loading speed, and prevent spam.
Therefore, let’s check out some effective ways to disable comments on your WordPress site.
Table of Contents
Why Should You Turn off Page/Post Comments?
At the start, WordPress appeared as a platform for the blog. Through updates, WordPress has become multi-purpose but it still owns lots of features serving the blog function. However, if you don’t benefit from it, turning it off can be a good solution. There are some cases you can choose to turn it off:
- No use of a blog or related stuff.
- Your site tends to give information more than having conversations.
- Comment features may make your online business site less professional.
- You would like to lead your visitors commenting on other platforms like a forum or social media channels.
Besides, you may have some pros when you disable comments in WordPress:
- Prevent the spammers and spammy links.
- Lighten the site’s performance.
Discussing the pros and cons, the decision to do it or not belongs to you. Later in the article, we will provide you with 3 gateways to make it possible.
Turn off Comments with WordPress Built-in Tools
This should be the easiest way to disable comments WordPress since you can find these options in the WordPress setting pad. Thus, you can make it quick but some obstacles will happen. We will talk about them later. Certainly, you choose between 2 options depending on your purposes.
Disable Comment on a Page/Post
WordPress turn off comments on a specific page or post is very common and simple. Thus, you can only do this on certain pages/posts if you have allowed it at some points.
To begin, open the page/post setting and navigate to “Discussion” in the right sidebar. Untick the box “Allow comments” and save changes. Therefore, no one is going to comment on that page/post. However, the existing comments will stay there unchanged.
Global WordPress Turn off Comments
Tired of turning off each post or page?
Well, it’s about time to prevent all comments on all pages and posts globally. First, navigate to “Settings” -> “Discussion”. In there, you will find and untick the box “Allow people to post comments on new articles”. Well done, you have just permitted all comments on future posts on your site.
However, a problem will come up. The comments on the existing posts are still there and you will need to delete them manually. Thus, we give you a tip to make it faster. Navigate to “Automatically close comments” and check for the option “older than _ days”. Then, you will check the box and add “0” to the field.
Combining with the above part, you have just turned off comments on your site globally.
Use a Plugin for WordPress Disable Comments
Although you are easy to disable WordPress comments with built-in widgets, you don’t have much control over the process. Besides, you may have to clean up a bit after the process.
Considering using the plugin, you will find yourself a faster and more effective method. We will introduce to you the 2 most significant types.
Consider a Free Plugin
In case you are in a low-budget condition, you can think about Disable Comments – a free plugin for disabling commentary parts in WordPress.
In the plugin, you can use the built-in tools to turn off comments globally or disable a separated page/post/category. First of all, download and install the plugin. Then, you will look for the option pad in “Settings” -> “Disable Comments”. In there, you may choose to turn off comments on a single page/post or the whole site. Also, you can do the same thing with other custom post types and other products including WooCommerce ones. In the end, select “Save Changes”.
To be noticed, you can’t overrun this process by normal WordPress setting board or allowing on pages/posts. Indeed, this solution will work well when you want to disable the commentary function on a website with lots of users. There, you can prevent the other from turning it on in the future.
Purchase a Premium Plugin
Particularly, you have more options than using free widgets for WordPress turn off comments. In the market, there are many premium plugins that you can rely on.
Usually, a premium WordPress plugin for turning off comments will boost your site loading speed and provide a pack of additional functionalities. They can fix the unfound errors and reduce the potential threats. However, let’s focus on the main part. The perf-matters for disabling comments are easy to find and run. In the “Disable Comments” under the part “Options”, you will see the plugin’s setting section. You will simply choose between disabling on a certain page/post or globally. Well, no more worry about other options!
With paid plugins, there are more tools for you to take advantage of. Especially, if you prefer perfecting your site’s loading speed, a premium plugin should be what you are looking for.
Apply Custom Code to Disable Comments
The 2 above methods should be enough for you to turn off comments. However, if you prefer not to add plugins to your site, custom code can be a great alternative solution. It may require some of your coding skills and technical knowledge. Thus, it is easy to only solve how to disable comments in WordPress.
With some basic HTML commands, users can simply hide the comment section in your WordPress. Remember, changing your theme’s source code may break your site if it’s not correctly coded. Besides, you should use the child theme to do these kinds of stuff. In the end, you should contact a developer if you are not so confident.
First, open the site’s PHP file in a planned HTML editor and search for this code line:
<?php comments_template( '', true ); ?>
Then, replace it with this:
<!-- Begin Comment <?php comments_template( '', true ); ?> End Comment -->
This process will both permit comments and erase all the current ones. To duplicate this on your posts, find this code line in the file “single.php”:
<?php comments_template(); ?> Replace it with this: <!-- Begin Comment <?php comments_template(); ?> End Comment -->
Afterward, people can no longer see the comment sections or give comments to future posts/pages.
WordPress Disable Comments: Conclusion
We know that the comments section is a good feature for nearly all sites. However, to prevent spam or unwanted conversations, you may have to disable comments on your WordPress site. With those 3 above methods, we hope you can make the best decision about turning of WordPress comments or not.
Read more: WordPress Duplicate Page or Post: How to Do it.