Where intelligence is put to the test.

Turn Off Comments in WordPress

John Crenshaw in wordpress

Oct 16

A while back I wanted to do something with WordPress that seemed like it should be the easiest thing in the world to do, like there should be a setting or something to change to turn off comments, but my search ended in disappointment at the thought that I would have to scrounge through and remove all the code that displays comments…I really hate when things aren’t made easy for me.

Anyway, here’s how it’s done…

1. Open index.php and remove this:

1
<span class="add_comment"><?php comments_popup_link('? No Comments', '? 1 Comment', '? % Comments'); ?></span>

2. Open single.php and remove this:

1
<?php comments_template(); ?>

3. Open archive.php and remove this:

1
<?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>

That’s it, you’re done, unless you have another theme that you’re using, in which case you need to scan all your blog pages for anything related to comments. If you find something, open whatever template that page is using and remove any lines of code like what’s above.

Written by John Crenshaw

More from John Crenshaw
Choosing the Right Enterprise SEO Agency: 2026 Vetting Guide

Scaling organic search for a large organization is fundamentally different from small business SEO. You're not just optimizing a few dozen pages; you're managing tens of thousands, or even millions,…

How to Do a Website Audit That Actually Boosts Revenue

So, you need to do a website audit. At its core, this means systematically breaking down your site’s technical health, on-page content, and user experience to find out what’s holding…

7 Powerful YouTube Dashboard Examples to Master Your Channel in 2026

YouTube's native analytics are powerful, but they don't always tell the whole story or connect performance to your broader marketing goals. A well-designed dashboard transforms raw data into a strategic…

Data driven marketing strategies: A Practical Growth Guide

Data-driven marketing strategies live and die by the quality of your customer data. It's the bedrock. Without a solid foundation, you're just guessing. Confused about where to start? Get a…

How to Calculate Marketing ROI and Prove Your Real Impact

Let's cut right to the chase. The simplest way to figure out your marketing return on investment is with this formula: (Revenue - Marketing Investment) / Marketing Investment. This little…

The Ultimate 10-Point PPC Audit Checklist for 2025

Pouring money into PPC campaigns without regular, in-depth audits is like navigating a maze blindfolded. You're moving, but are you getting closer to your goal? Many businesses leak significant portions…

Ready to talk? We’re listening.

If you have questions we have answers. And probably some questions for you, too.

Let’s get after it!

Let's Get Started