Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

How to Turn Off or Disable Comments in WordPress Pages

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
How to Turn Off or Disable Comments in WordPress Pages

When you create a new page in WordPress, it has comments enabled by default. This could be a little annoying if you create a lot of pages and sometimes forget to uncheck the enable comments box. Recently one of our users asked us if there was an easy way to remove comments from pages in WordPress. In this article, we will show you how to turn off or disable comments in WordPress pages.

You can use WordPress to create websites that do not look anything like a blog. You can use pages to create all your content (see the difference between pages and posts), create custom post types, and have a separate page for blog posts. Now you may want to have comments on your blog posts, but not on your pages and other sections of your website.

Video Tutorial

If you don’t like the video or need more instructions, then continue reading.

To turn off comments on pages, the first thing you need to do is install and activate the No Page Comment plugin. Upon activation, you need to visit Settings » No Page Comment to configure the plugin.

Disable comments and trackbacks on new pages in WordPress

If you only want to disable comments on new pages, then check the comments and trackbacks checkbox next to Pages and click on the Update Settings button. If you also want to turn off comments on all previous pages as well, then click on the Disable All Comments and Disable All Trackbacks buttons next to pages under Modify All Current section.

Disable comments on all pages

That’s all, your WordPress pages are now comments free.

Remember that even though you have disabled comments on all pages, you can still enable them on a page if you want. To do that you need to edit the page where you want to enable comments. On the post editor screen click on the screen options button on the upper right corner of the screen. This will open a fly down menu where you need to check the box next to Discussion.

Show the discussion box on page editor in WordPress

Once you have checked the discussion box, scroll down and you will find a Discussion meta box on the post editor screen. This meta box allows you to selectively enable or disable comments on a single page.

Enabling comments on selective pages in WordPress

Check the box next to Allow Comments to enable the comments on this page. Now you can update or publish your page and it will show up with a comment form.

We hope this article helped you switch off comments for pages in WordPress. If you are using pages to build your WordPress site, then you may also want to check out our guides on how to add categories and tags for pages, and how to display related pages in WordPress.

If you like this tutorial, then consider subscribing to our YouTube Channel.

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »


  1. Carie says:

    Thank you. You solved the problem for a complete novice who is undergoing a HUGE learning curve in building a website for the first time, and a geriatric novice as well!!

  2. ltbd says:

    thianks. but now you can add custom option for you from option tree function file

  3. Seputar Android says:

    Very informative

  4. Misu says:

    Thanks for your helpfull post. your post writing is very easy………

  5. Meghna bansal says:

    I have tried this and it really works. Thanks for sharing this information.

  6. Fred Poritsky says:

    I love the Plug In. I disabled all comments and made sure the correct items were unchecked on the Screen Options. However, on a few Pages, I see the words, No Comments. How do I delete that show it doesn’t show up on the website.

    • WPBeginner Support says:

      In your themes comments.php file locate the line:

        comments_popup_link( 'No comments yet', '1 comment', '% comments', 'comments-link', 'Comments are off for this post');

      you can delete the text ‘no comments yet’ and leave it empty.

  7. Arafania says:

    Thanks a lot sir, I want to delete all comments from my blog, is ut possible???

    • WPBeginner Support says:

      Yes it is possible. But once you delete comments from database they are gone so make sure you have a backup with comments first. Alternately, you should consider hiding comments instead of deleting them.

  8. Khalid says:

    Nice Post. I deleted all comments in short time. Thanks for sharing

  9. Mark Rohde says:

    I just installed this plugin, even though I had already disabled and removed all comments on a particular website. There is a problem it doesn’t resolve for me:
    All Posts (but not Pages) have a line at the top such as “12 JUNE, 2015 / [name of author] / COMMENTS OFF ON [name of post] / EDIT”
    This bit “COMMENTS OFF ON…” is a bit messy – how can I get rid of that? I assume editing some bit of PHP script? Is this something Seth Alling can just add to the plugin?

    By the way, I finally turned off comments when it became clear for this web site’s target group there was confusion between “Comments” and “Contact Form”!

    Thanks for all the valuable work you do at WPBeginner.

  10. Steven Denger says:

    So helpful!! Comments are gone. Thanks for all your efforts!

  11. Nitai Roy says:

    I am new with wordpress and honestly I was frustrated with disallowing comment section. After long searching I got the right solution here.

  12. Pete says:

    This can be done easier by selecting all pages and then selecting edit from the bulk actions dropdown and selecting ‘Don’t allow comments’ from the Comment dropdown

  13. Lynn Dye says:

    I wanted to turn off comments for a specific post. This is also possible (thank goodness). I clicked the dropdown on ‘Screen Options’ and clicked to remove comments, but I was still able to make comments on that post.
    I did not see the Discussion settings box you referenced above, so I wondered where they went. Finally, I thought to click on the ‘Quick Edit’ and there the Discussion box was! I was able to disable comments and then everything was great.
    Just wanted to mention this to anyone else coming here to check the Quick Edit for settings too!
    Thanks for your great information. I check you guys first!

  14. Matilda Reich says:

    I don’t mind comments enabled at the end of static pages, for now.
    But I am trying to delete some reference to html tags at the end of the ‘Leave a Reply’ box, just above the Post Comment button.

    The text I am trying to delete is this:

    You may use these HTML tags and attributes: <a href="" title="" rel="nofollow"> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    It doesn’t appear in Editor, only on the live web pages. How do I block remove this. Tried looking at comments.php and functions.php. Also added a snippet to the style.css advised by a WordPress forum member. So far no luck.
    What can I do?

    • WPBeginner Support says:

      We haven’t tested it but this should work. Inside your comments.php you will find

      <?php comment_form(); ?>

      Replace it with this code:

      'comment_notes_after' => ''
  15. james samy says:

    Simple and easy understand.
    Thank you love it

  16. Seth Alling says:

    Plugin author here. Thanks for the nice writeup on No Page Comment.

    I’ve been wondering if there’s anything I can add to the plugin to make it better. The one thing that has come to mind is an easy on/off button for comments on the page/post listings so if someone wants to quickly switch the comment status on a particular, they won’t have to open the post itself or use the quick edit. I just worry that it will be an unnecessary feature that most won’t use, and I’d prefer to keep the plugin simple.

    Any thoughts or ideas for other improvements toward No Page Comment?

  17. Gurukarm says:

    This? is awesome! Thank you very much; this is *exactly* the question I was struggling with on a site a manage. Much appreciated.

  18. Deni says:

    Just wanted to let you know that your WP tips are literally the very best and very helpful. Your tips are exactly what people using WordPress want to know how to do and/or do more efficiently. I keep all of your tips in a WordPress folder on my computer. Thank you for the great job you’re doing! – Deni

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.