How to disable or enable comments in pages in a WordPress theme 12


WordPress offers the possibility to have comments in pages. But in most cases, comments shall rather be used on posts and you might want to deactivate them in pages.

Disabling comments in all pages

In your WordPress admin, navigate to the pages screen :  Pages > All Pages.

Click the checkbox on top of the title’s column like in the picture below. This will select all your pages.

pages-screen-1

 

 

Then, open the Bulk Actions dropdown list like in the picture below, choose “Edit” and click on the “Apply” button.

pages-screen-2

 

 

 

At this point you should see a Bulk Edit block with all your selected pages on the left, and a list of dropdown options on the right.

Open the “Comments” dropdown list and select the “Do not allow” option (see the screenshot below). Then click on the “Update” button at the left bottom corner of the Bulk Edit block.

pages-screen-3

 

 

Now your pages won’t display any comments or comment form anymore.

 

Disabling comments on one page

If you only need to disable the comment in one page, then it’s even simpler.

In the Page Screen (navigate to Pages > All Pages), hover the mouse over the page title for which you’re willing to disable the comments. It will reveal some options for this page : Edit | Quick Edit | Trash | View.

Click on the Quick Edit link. (see the screenshot below)

pages-screen-4

 

It will open an inline edit block under the page title where you can set some items in the page like the Title, the url slug, etc. Uncheck the “Allow Comments” checkbox to disable comments for this page.

pages-screen-5

 

 

That’s it, now you can take control on your page comments in WordPress and in the Customizr theme or the Hueman theme.

Hope this will help 🙂


12 thoughts on “How to disable or enable comments in pages in a WordPress theme

Leave a Comment

Your email address will not be published. Required fields are marked *

If you need to share some code, please wrap it between the following tags (css code in this example) : <pre class="lang:css">YOUR CODE</pre> ( possible code language acronyms : css, php, xhtml, javascript, sql)

You may also use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">