How to remove ‘Leave a Reply’ comments section in WordPress
Updated On May 23, 2015 October 9, 2012 -Written ByBy 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.
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.
Hurrah, that’s what I was looking for, what a information! present here at this web site, thanks admin of this web site.
nice thank you
This is useful.. I’ll try it
Thank you so much for posting this. I was getting really frustrated. :)
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.
correct
good
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..
Quite insightful. This has saved me hours of searching. Thanks for sharing.
A big thanks for this code, really need this one.
Thank You. It worked perfectly. page.php on mine it was