WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
  • Deals
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» WordPress Plugins

How to Turn Off or Disable Comments in WordPress Pages

Last updated on June 19th, 2014 by Editorial Staff
226 Shares
63
127
24
12
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.

226 Shares
63
127
24
12
Popular on WPBeginner Right Now!
  • Why Build Your Email List Today

    Revealed: Why Building Your Email List is so Important Today!

  • Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

  • Step by Step Guide: How to Start a Podcast with WordPress

    How to Start Your Own Podcast (Step by Step)

About the Editorial Staff

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

The Ultimate WordPress Toolkit

27 Comments

Leave a Reply
  1. Joris Heyndrickx says:
    Nov 10, 2016 at 4:57 am

    Is there really no way to disable comments without using a plugin? Like a setting in config.php? I think in general plugins should be used to extend functionality, not to limit it.

    Reply
  2. Mwalugha says:
    Nov 3, 2016 at 9:06 am

    That was a good tutorial

    Reply
  3. Siri Svendberg says:
    Nov 3, 2016 at 3:55 am

    Thanks, this was great help.

    Reply
  4. Carie says:
    Jun 20, 2016 at 2:06 pm

    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!!

    Reply
    • WPBeginner Support says:
      Jun 21, 2016 at 12:01 pm

      Glad you found it helpful. :)

      Reply
  5. ltbd says:
    Apr 18, 2016 at 11:57 am

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

    Reply
  6. Seputar Android says:
    Apr 13, 2016 at 12:45 pm

    Very informative

    Reply
  7. Misu says:
    Jan 19, 2016 at 1:36 pm

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

    Reply
  8. Meghna bansal says:
    Jan 11, 2016 at 6:07 am

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

    Reply
  9. Fred Poritsky says:
    Dec 22, 2015 at 6:40 pm

    HI,
    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.

    Reply
    • WPBeginner Support says:
      Dec 23, 2015 at 6:02 am

      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.

      Reply
  10. Arafania says:
    Sep 16, 2015 at 12:17 pm

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

    Reply
    • WPBeginner Support says:
      Sep 16, 2015 at 2:50 pm

      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.

      Reply
  11. Khalid says:
    Aug 26, 2015 at 1:22 pm

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

    Reply
  12. Mark Rohde says:
    Jul 26, 2015 at 12:18 pm

    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.

    Reply
  13. Steven Denger says:
    Jul 16, 2015 at 11:53 am

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

    Reply
  14. Nitai Roy says:
    Jun 18, 2015 at 8:24 pm

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

    Reply
  15. Pete says:
    Apr 23, 2015 at 6:12 am

    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

    Reply
    • meaghan says:
      Jul 10, 2015 at 11:48 am

      yes!!!! ty!

      Reply
  16. Lynn Dye says:
    Dec 11, 2014 at 5:01 pm

    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!

    Reply
  17. Matilda Reich says:
    Apr 6, 2014 at 9:22 pm

    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?
    Thanks

    Reply
    • WPBeginner Support says:
      Apr 7, 2014 at 8:44 pm

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

      <?php comment_form(); ?>
      

      Replace it with this code:

      <?php 
      comment_form(array(
      'comment_notes_after' => ''
          ));
      ?>
      
      Reply
  18. james samy says:
    Apr 4, 2014 at 10:43 am

    Simple and easy understand.
    Thank you love it

    Reply
  19. Seth Alling says:
    Apr 4, 2014 at 9:42 am

    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?

    Reply
    • WPBeginner Support says:
      Apr 5, 2014 at 12:15 am

      Seth, thanks for writing this useful plugin. Let’s see how our users find it.

      Reply
  20. Gurukarm says:
    Apr 2, 2014 at 12:42 pm

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

    Reply
  21. Deni says:
    Apr 2, 2014 at 12:29 pm

    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

    Reply

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 600,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
OptinMonster
OptinMonster
Convert website visitors into email subscribers. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Which is the Best WordPress Photo Gallery Plugin? (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • How to Choose the Best WordPress Hosting
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • Why You Should Start Building an Email List Right Away
    • Which is the Best WordPress Slider? Performance + Quality Compared
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • How to Choose the Best Blogging Platform (Comparison)
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2016)
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
Deals & Coupons (view all)
Themify
Themify Coupon
Get 20% off on Themify theme's beautiful WordPress themes. Responsive designs with tons of options.
ThemeIsle Coupon
Get 20% off ThemeIsle themes when you use this coupon.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
Our Sites
  • OptinMonster
  • Envira Gallery
  • SoliloquyWP
  • WPForms
  • MonsterInsights
  • List25

Copyright © 2009 - 2017 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

WordPress hosting by HostGator | WordPress CDN by MaxCDN | WordPress Security by Sucuri.