Getting rid of comments
URL to the page in question:
-
How can I turn my site into more of a CMS? I want to remove anything related to comments.
You can delete the comment section from being visible on posts. Here’s how to do that.
- Go to the appearance section and select edit to open up the theme editor
- From the list of files on your right, choose single.php
- Look for this spot:
<?php comments_template(); ?>
and delete it.
- Save your changes.
That should remove the comment form and list from your site. If you’d also like to take out the references to “Leave a Comment” that appear by the post date you can do that too. Here’s how.
- Edit the archive.php file
- Look for this spot:
and delete it.
- Save your changes.
That should remove the references to “Making a Comment” as well.
Let me know if you need any help.
Thanks Bill! I did what you said but the Leave a Comment still appears next to posts on the bottom of the home page. What next?
Good catch. You can make the same edit to the home.php file to change that one too.
Wow! That caused the site to crash. I will have to undo that.
The part you want to delete is on line 38. What you’ll want left there is:
Okay. Not sure why it went so bad the first few times but it works now. Thanks Bill!
No problem. Glad it worked this time.
- The topic ‘Getting rid of comments’ is closed to new replies.