Cotton Rohrscheib

The Cotton Club Blog & Podcast

  • Home
  • About
    • Entrepreneurial Journey
  • Blog
    • Faith & Family
    • Marketing & Tech
    • Farm & Business
    • Entertainment
    • Health & Wellness
    • Urban Farming
    • Weekend Projects
  • Podcast
  • Newsletter
  • Media
    • Photo Galleries
    • Video Archives
  • Marketplace
    • Buying Gold & Silver
    • Accoutrements
      • Bags & Briefcases
      • Notebooks
      • Personal Carry
      • Wallets
    • Poshmark
    • Artwork
    • Banknotes & Currency
      • Currency
      • Gold Banknotes
      • Silver Certificates
    • Rare Books
    • Rare Coins
      • Coin Sets
      • Individual Coins
    • Signs & Advertising
    • Stock Certificates
    • Trading Cards
      • Trading Cards: Autographs
      • Trading Cards: Base
      • Trading Cards: Graded
      • Trading Cards: Raw
      • Trading Cards: Pokémon
      • Trading Cards: Sets
    • Vintage Toys
      • Buddy L
      • Ertl Farm Toys
      • GI Joe
      • Masters of the Universe
      • Hot Wheels
      • Lionel Trains
      • Lunch Boxes
      • Marx Toys
      • NASCAR Die-Cast
      • Schleich Toys
      • Star Wars
      • Tonka Trucks
    • Watches & Jewelry
  • Connect
You are here: Home / Marketing & Tech / Turn Off WP Comments Globally

Turn Off WP Comments Globally

November 13, 2008 by Cotton Rohrscheib Leave a Comment

Turning off comments globally in WordPress is kind of a community frustration among developers, we get requests from time to time from our clients that are running WordPress that are wanting to globally disable comments. 

Honestly there really isn’t a good way to approach this, in a nutshell, this has to be handled on a post by post basis also page by page if you are running comments on your pages as well. 

In the back of my mind I knew in theory what had to happen to globally remove the comments.php include from showing up on the site but wordpresshacker.com did a great job posting the 3 steps involved that I decided to re-post them here…

  1. Open up index.php and remove this line of code:
    <span class=”add_comment”><?php comments_popup_link(‘? No Comments’, ‘? 1 Comment’, ‘? % Comments’); ?></span>
  2. Open up single.php and remove this line of code:
    <?php comments_template(); ?>
  3. Open up archive.php and remove this line of code:
    <?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.

Turn Off WordPress Comments | WordPress Hacker

Filed Under: Marketing & Tech Tagged With: Wordpress™

About Cotton Rohrscheib

The Cotton Club is a monthly podcast hosted by me, Cotton Rohrscheib. I'm a 52 year old entrepreneur w/ ADHD, OCD (and now AARP) that refuses to grow up as I grow old. I have collaborated and invested in hundreds of projects throughout my career in multiple industries such as; technology, healthcare, and agriculture. I also have 25 years experience in the marketing industry as a co-founder of an award-winning advertising agency. I will undoubtedly cover a wide variety of topics on my podcast while sharing some really crazy stories and situations that I've been fortunate to witness firsthand. I also have a book coming out in 2025 titled, "Mistakes were Made"

Leave a Reply Cancel reply

You must be logged in to post a comment.

  • Email
  • Facebook
  • Instagram
  • LinkedIn
  • Twitter

Recent Updates

  • Ep034: Cotton Rohrscheib & Tim Volberding
  • I Stay on Track w/ Reminders & Task Lists
  • It’s a Really Dry Start to the Season…
  • Trading Card Grading Services
  • Products Being Added…

Blog Categories

  • Blog (439)
  • Entertainment (378)
  • Faith & Family (155)
  • Farm & Business (302)
  • Health & Wellness (38)
  • Marketing & Tech (591)
  • Podcasts (33)
  • Urban Farming (24)
  • Weekend Projects (9)

Blog Archives

Join the Cotton Club!

 

Content Copyright © 2000-2026
Cotton Rohrscheib | Rohrscheib Capital
Disclaimer | Privacy Policy | Account Manager | View Cart

All opinions expressed on this website are 100% Cotton (see my disclaimer). All content, including text, images, and media, are the intellectual property of Rohrscheib Capital unless otherwise noted. To learn how we use your private information, checkout our privacy policy.