Skip to content
UFO Performance Marketing

Where intelligence is put to the test.

HomeServicesOur WorkBlogAboutContact Us
MenuClose

Explore UFO

HomeServicesOur WorkBlogAboutContact Us

Where intelligence is put to the test.

WordPress · Oct 16, 2014

Turn Off Comments in Wordpress

Turn Off Comments in Wordpress
JC
John Crenshaw
Oct 16, 2014

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.

WordPress

Get the latest from UFO

Keep reading

More from the blog

All Posts →
Standout Author Comments
WordPress

Standout Author Comments

Make it immediately obvious which comments in WordPress were written by the post author by styling your author comments differently. This post shows you how.

John Crenshaw · Oct 16, 2014
Using WordPress Custom Fields
WordPress

Using WordPress Custom Fields

Using WordPress as a CMS often for client sites I use custom fields perhaps quite a bit more than the regular WordPress user.

John Crenshaw · Oct 16, 2014
Add a Favicon to your WordPress Blog
WordPress

Add a Favicon to your WordPress Blog

Even though it's one of the simplest changes you can make, many sites leave out this small detail for whatever reason. Well, in this article I'm going to show you how to add a Favicon to your WordPress-powered site.

John Crenshaw · Oct 16, 2014

Want results like these?

Let's talk about where you are, where you want to go, and the smartest way to get there.

Contact Us
UFO

Where intelligence is put to the test.

  • Home
  • Services
  • Our Work
  • Cool People Saying Smart Things
  • About
  • Partners
  • Testimonials
  • Blog
  • Marketing Library
  • Agency Guides
  • Careers
  • Contact Us

Offices

  • Cincinnati, OH
  • Columbus, OH
  • Portland, OR
  • (513) 549-7355
Contact Us
Google 5.0 five star rating Google Ads Premier Partner 2026
© Copyright 2026 UFO Marketing. All rights reserved. Privacy Policy | Terms of Use