To completely disable comments in WordPress, go to the “Settings” menu, then click on “Discussion.” Uncheck the box that says “Allow people to submit comments on new posts.”
Additionally, to disable comments on existing posts, go to “Posts,” select all posts, and under the “Bulk Actions” dropdown, choose “Edit.” Then select “Do not allow” next to “Comments” and click “Apply.” This will effectively turn off comments site-wide.
By disabling comments site-wide in WordPress, website owners can streamline their content management process and reduce the need for moderation.
This can be particularly beneficial for sites where comments are not a desired feature or where managing and moderating comments is resource-intensive. Disabling comments can help maintain a cleaner and more focused user experience on the website.
How to Disable Comments on WordPress Using a Code Snippets Plugin
The WPCode plugin provides an effective method for handling code snippets, including a ready-to-use snippet that allows you to fully disable comments on your WordPress site without having to directly modify the code or adjust settings for each individual post.
Here are the steps to turn off comments using this feature.
Start by logging into your WordPress dashboard and go to the Plugins section, then click on Add New Plugin and look for WPCode.
WPCode Plugin
Locate the WPCode plugin in the list of search results, and proceed to install and activate the WordPress plugin.
Head to the Code Snippets section in your WordPress sidebar. This will display a selection of pre-written code snippets.
WPCode Snippets
Locate the snippet titled “Completely Disable Comments.” This snippet is specifically designed to prevent new comments from being posted and to hide any existing ones, covering your entire website. If it’s not visible, go to the Library from the sidebar, type in the name of the snippet in the search bar, and add it to your list of active snippets.
You can immediately activate the snippet by switching the Activate switch to On. Alternatively, you can adjust its settings by clicking on its name.
WPCode Settings
Once the snippet is active, comments will be disabled throughout your WordPress site, including all posts, pages, and custom post types.
Should you wish to enable comments again at any time, simply go back to the WPCode dashboard and switch the activation switch to Off.