DISCLAIMER: this post is older than one year and may not be up to date with latest WordPress version.

Altought it can be weird in some points because comments are an important part of a blog, I have read many user asking how they can get rid of the “comments” section on their WordPress theme. That’s very easy to do. Just read on.

Removing the comments section on a blog can sound weird at first, but sometimes you just want to spread some news without getting any feedback.
In case you don’t want any post to be commented, just edit your single.php file from your theme.

Find the following line:

<?php comments_template(); ?>

and delete it. THat’s simple at that!


  1. Or if youy just want to disable it, but be able to reenabe it an any time easy just comment it out like such:

    <?php //comments_template(); ?>

  2. I would like to know how to disable comments from a single page. Or even from all pages. But leave a comments section on the Blog Home page. Can you help me with this?

    Would be much appreciated!

  3. I am far more of a beginner than that. Could you tell me how to find the php file in the first place?

  4. @Mayana – Where you see [code][/code]
    Change to:

    @Jon – You can find this line at:

    The **THEMENAME** will depend on what your active theme is.

    Hope this helps, if not click on my name and use the contact us page and get in touch and I shall try and help you further.

  5. Thanks for this very useful post. I’m experimenting with just using facebook comments, and wanted to know how to turn off my WP comments. This did the trick!

  6. for one’s who need to disable and re-enable the comments section, there is an easier way.
    When you write a comment or a post, you will have an option to disable comments on specific pages or posts.
    If you donot see this option, click on screen options on the top right of the edit post or page screen and check the discussion box.
    Now you will see the disable comment and trackback option just below the space where you type content for your post or page
    This way you don’t have to mess with the comments.php page and can be enabled whenever you want.

  7. How do you list all comments from your site on your home page?

  8. Anyone know how to “comment-out” the comments section for a particular page, but then add comments from a different post?

    Can I use the disable option when I write the post, but then insert the get_comment code on the page somehow (and where?)

  9. how do I change the email address where comments go to on my wordpress site?

  10. I want my blog to have a “website look”, so I would like to completely remove ALL things related to comments (and post comments, etc) in ALL pages.

    What should I do?

    Thanks a lot!

  11. I found the code in the single.php section I deleted it and had no luck. My page still has the ” leave a reply” section. Any help would be awesome !

  12. anthony: If you’re still wondering – It might not be in the single.php section. I found the line in page template (page.php) – so my guess is – please check all the page related templates! Hope this helps.

  13. @Vish…that’s a big help….

    After spending an hour searching, fixed my problem in 30 seconds.

    If you want comments out completely…for the solid webpage look…..do this…

    Dashboard —> Appearance—>Editor—-> go to Page Template, listed on the right hand side of the page…then delete “” like the original poster said.


  14. Vish, thank you for coming back in with the info. I was with Anthony and couldn’t find it. There it was in the (page.php). I appreciate your comment!

  15. Great, its a good technique for solving to this problem and its is also

    useful for those peoples which belongs to its related work

  16. Settings >> Discussion >> uncheck “Allow people to post comments on new articles”

    This applies to new posts that you will publish from now on. To disallow comments from already publish posts:

    Posts >> select them all and “Edit” under bulk actions and hit apply >> choose “do not allow” next to comments and hit update posts.

  17. Hi there,

    You can disable the comments via the post/page editor. You may need to enable “discussion” in the “screen options” tab at the top right of the window to see the option to disable comments.

  18. I tried following the above directions and I fear I may have broken my site. I am a novice at WordPress, can someone help me to determine if it is fixable?

  19. I don’t think it’s a good idea to delete , because some people like to left comments and its very interesting to hear people minds about the article .

  20. You can also download the “Disable Comments” plugin.

  21. This is brilliant, I installed your plugin (its amazing :) ) and wanted to remove the spammy comments section, There are lots of ways you can remove WP Comments from your wordpress blog that have been discussed here. It really depends what you feel more comfortable.

    If you feel easy downloading / uploading files using FTP and know the wp structure well enough, I would suggest going with deleting the
    section of either the page.php or single.php

    Otherwise use the dashboard and edit those files directly inside of wordpress.

    Great post this and it should help lots of people out.

  22. For me installing “Disable Comments” plugin worked the best. Thanks.

  23. Hi, can any one help me ………..!

    when i am posting any thing in my website, below that post this comment “This entry was posted in Private Equity Knowledge on December 22, 2012” is appearing…

    Actually i dont want to show that comment in my website can any one have an idea regarding this..

    Please help me…. my website don’t required this.

  24. This trick is not worked on my wordpress blog i just removed the line you said above but not worked kindly give me reason why?

  25. All you have to do is go to the screen options drop downs. Enable discussions by checking it. Now you can have it on the pages or post you want. Very easy with 3.5

  26. I just read through this. I think I would just install the “Delete Comments” plugin to make things look like a regular website.

    The reason is, and no one mentioned this here is that every time you update to a newer WordPress version on your site, you’ll have to go back in and delete the file again. I try to avoid making too many changes to the php files for this reason.

  27. Is there any way to get rid of the name and email field and just have the comments box?

Leave a Comment

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