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.
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!
9 Responses
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(); ?>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!
I am far more of a beginner than that. Could you tell me how to find the php file in the first place?
@Mayana – Where you see [code][/code]
Change to:
[code][/code]
@Jon – You can find this line at:
wp-content/themes/**THEMENAME**/single.php
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.
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!
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.
—peace—-
How do you list all comments from your site on your home page?
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?)
how do I change the email address where comments go to on my wordpress site?
Trackbacks: