WordPress is a popular platform for creating websites and blogs. While the comment section can be a great way to engage with readers and build a community around your content, there may be times when you want to disable comments on certain posts or pages. Here’s how to block comments in WordPress:
Disable Comments Globally
If you want to disable comments on all of your posts and pages, you can do so in your WordPress settings. Go to Settings > Discussion and uncheck the box that says “Allow people to submit comments on new posts.” This will prevent comments from being posted on any new content you create.
To disable comments globally, click Discussion under the Settings and
On the Default post settings uncheck the box says “Allow people to submit comments on new post”.
Disable Comments On Individual Posts and Pages
If you only want to disable comments on certain posts or pages, you can do so in the editor. When creating or editing a post or page, scroll down to the “Discussion” section and uncheck the box that says “Allow comments.” This will disable comments specifically for that piece of content.
Use A Plugin
Edit Your Theme’s Code
If you’re comfortable working with code, you can also edit your theme’s code to remove the comment section entirely. However, this is not recommended unless you know what you’re doing, as it can potentially break your site if done incorrectly.
Blocking comments in WordPress is a simple process that can be done in a few different ways. Whether you want to disable comments globally or just on specific posts or pages, there are several options available to you. By taking advantage of these tools, you can create a website that meets your needs and preferences.