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:
[cc]
comments_template( ”, true );
[/cc]

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:

[cc]
//comments_template( ”, true );
[/cc]

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

12 Comments

  1. Ny lighting on October 31, 2012 at 12:27 pm

    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 on December 24, 2012 at 10:23 pm

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

  3. jigolo on February 3, 2013 at 8:22 pm

    nice thank you

  4. Sarah on March 25, 2013 at 4:35 pm

    This is useful.. I’ll try it

  5. Diane L on April 3, 2013 at 2:11 am

    Thank you so much for posting this. I was getting really frustrated. :)

  6. Jo the maker on April 8, 2013 at 3:04 pm

    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.

    • ramatullah on July 16, 2013 at 10:27 am

      correct

      • ramatullah on July 16, 2013 at 10:28 am

        good

  7. Avril Oosterhof on April 24, 2013 at 1:57 am

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

  8. Nguyen Tan Dung on June 25, 2013 at 4:09 pm

    Quite insightful. This has saved me hours of searching. Thanks for sharing.

  9. howiel on August 15, 2015 at 12:08 am

    A big thanks for this code, really need this one.

  10. Cez on May 9, 2017 at 4:13 pm

    Thank You. It worked perfectly. page.php on mine it was

Leave a Comment