How to remove ‘Leave a Reply’ comments section in WordPress

By default every post and page has comments section at the bottom including: the comment form with title “Leave a Reply” and section to display existing user comments. While this format looks good for usual blog layout, WordPress users wanting to give ‘website’ look may want to get rid of “Leave a Reply” comments section below every content article posts and pages.

I. Quick edit method to remove Comments section

If you only have handful of posts and pages on your WordPress website that should NOT have comment form at the bottom, then using “Quick Edit” option to remove “Leave a Reply” comments section is a recommended method.

1. In your WordPress dashboard, goto Posts > All Posts. Hover mouse over specific post and then click “Quick Edit” option. In the expanded options set, click to uncheck (no tick) “Allow Comments” option and then click “Update” button.

2. Now preview that post, it should appear fine without the comments section. Similarly, you can disable and remove comments section for other posts and pages using above method. If the comments section still appear even after disabling the above feature, then you can use manual code method – which for sure will remove comments section.

Video: How to Hide Comments box under WordPress posts

II. Manual code editing to remove Comment section

1. In WordPress dashboard, goto Appearance > Editor to access your WordPress theme files. On the right side you should see listing of all theme files. Click to open the “single.php” file.

2. In single.php file look for the following code:

comments_template( '', true );

We need to disable execution of this code to remove Comments section from WordPress website. Just add // in front of this code to disable it, as seen following:

//comments_template( '', true );

Incase you want to revert back to display of Comments section on your WordPress website, just remove // from the above code.

iGuiding Make Websites

Create a 'Happy' website today

An awesome Mobile Responsive website powered by: Genesis Framework, WordPress, HTML5, CSS3 & personal attention.


  1. says

    Even the regular bloggers are not aware that they can actually remove ‘leave a reply’ option form their blogs. Your post will prove to be really helpful for the WordPress users.

  2. empresa de informatica says

    Hurrah, that’s what I was looking for, what a information! present here at this web site, thanks admin of this web site.

  3. says

    I have no ‘edit’ button under ‘appearances’ so I can’t see where to add code to eliminate the comment boxes under my photos in gallery mode?
    I have done the standard checking/un-checking comments boxes, only worked on other pages – not in gallery, it looks unprofessional, please help. I have the paid customisation upgrade. Thanks, I’m new to WP.

  4. Avril Oosterhof says

    Wohh precisely what I was searching for, thanks for posting . “Be nice to everyone on your way to the top because you pass them all on the way down.” by Fred Hufnagel, Sr..

Leave a Reply