Get Rid Of Comments
How can I get rid of all comment links and forms in my theme?
Step1
Make a back up copy of your theme. You’re going to be editing quite a few template files, so it pays to keep an original copy somewhere safe in case:
- You change your mind
- Everything goes pear-shaped
Step 2
Edit index.php and look for:
<?php comments_popup_link( [some code] ); ?>
and delete this entire line.
You may have to repeat this step in the following template files if they exist in your theme:
category.phparchive.phptag.php
Also, check any Custom Page templates that you might have.
Step 3
Edit single.php and look for:
<?php comments_template(); ?>
Again, delete the entire line.
You may have to repeat this step in page.php if your WordPress Pages are configured to accept comments.
Step 4
Delete comments.php from your theme.
Your site should now be a comment-free zone.
You might also be interested in
FlipFlop 3.0