Title: How to remove Comments off section
Last modified: August 19, 2016

---

# How to remove Comments off section

 *  [myers1984](https://wordpress.org/support/users/myers1984/)
 * (@myers1984)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/how-to-remove-comments-off-section/)
 * Hello.
    I have turned comments off but get the message “Comments off” on all 
   my pages. I am wondering how do you remove it so it doesnt have it there at all.
 * Website:
    [http://www.metalobsession.net](http://www.metalobsession.net) Thanks.

Viewing 15 replies - 1 through 15 (of 15 total)

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/how-to-remove-comments-off-section/#post-714680)
 * Please acquaint yourself with using the search function of the forum.
 * [http://wordpress.org/support/topic/157844?replies=12](http://wordpress.org/support/topic/157844?replies=12)
 *  [intricateartist](https://wordpress.org/support/users/intricateartist/)
 * (@intricateartist)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/how-to-remove-comments-off-section/#post-714970)
 * That doesn’t explain how to remove the text “comments off” without removing the
   entire line of code. Where can the text be altered?
 *  [intricateartist](https://wordpress.org/support/users/intricateartist/)
 * (@intricateartist)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/how-to-remove-comments-off-section/#post-714972)
 * ahh. got it in the template tags section:
 *     ```
       <?php comments_popup_link('0 comments', '1 comment',
       '% comments', 'comments-link', 'Comments off'); ?>
       ```
   
 *  [envt](https://wordpress.org/support/users/envt/)
 * (@envt)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/how-to-remove-comments-off-section/#post-715028)
 * A bit more detail follows on how I got “Comments Off” to not appear.
 * The code noted above that has to be changed (or removed) is this:
 *  <?php comments_popup_link(‘0 comments’, ‘1 comment’,
    ‘% comments’, ‘comments-
   link’, ‘Comments off’); ?>
 * This code is in a file called “comment-template.php” and that file resides in
   the wp-includes folder. It took me a long time to find that file. All I did was
   remove the words “Comments off” from between the single quotes. Thus the html
   code that is generated and sent to a browser will just write nothing, eliminating“
   Comments Off”.
 * I agree with others who say that it would be good to have a switch for removing
   all commenting components of WordPress for those who do not wish to have commenting
   become part of their blog. That goes for other interactions such as trackbacks,
   which, even if eliminated as an option, appears to still be an avenue for spam.
 *  [envt](https://wordpress.org/support/users/envt/)
 * (@envt)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/how-to-remove-comments-off-section/#post-715030)
 * One other tip. Searching php files using the Windows search utility does not 
   work…that’s why I had trouble finding the comment-template.php file…I searched
   for the term “Comments Off” but as php files were not searched, it did not come
   up. Here’s a decent explanation of how to get the Windows search utility to find
   key words within php files: [http://cow.neondragon.net/index.php/72-Searching-Php-Files-With-Windows-Search](http://cow.neondragon.net/index.php/72-Searching-Php-Files-With-Windows-Search).
   It took a bit of doing, but it worked!
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/how-to-remove-comments-off-section/#post-715031)
 * _This code is in a file called “comment-template.php” and that file resides in
   the **wp-includes folder**._
 * Very bad advice!
    Core files should NOT be edited ever. Just remove the line 
   from the theme’s template files. Done.
 *  [puckrat](https://wordpress.org/support/users/puckrat/)
 * (@puckrat)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/how-to-remove-comments-off-section/#post-715034)
 * [@myers1984](https://wordpress.org/support/users/myers1984/) … I think maybe 
   I understand what you’re asking for ==> you’d like for the comments references(
   i.e. comments off) to not show when a given post is not set to have comments.
   I found a method that works for me, with the theme I’m using. Perhaps it will
   work for others as well. My particular theme was showing the comment input box
   even when comments were off *and* I wanted to get rid of that oh so annoying “
   comments off” message. So …
 * With my theme it meant editing three theme files:
    - archive.php
    - comments.php
    - index.php
    - In each case, where I didn’t want the comment info to show if comments were
      off I placed the comment line display in an if statement:
    - `<?php if ('open' == $post-> comment_status) : ?> ... <?php endif; ?>`
    - i.e.
    - `| <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments');?
      >`
    - becomes
    - `<?php if ('open' == $post-> comment_status) : ?> | <?php comments_popup_link('
      Leave a Comment', '1 Comment', '% Comments'); ?><?php endif; ?>`
    - **Note:** This has some additional work needed, as the comments info will 
      not show at all if comments are off. Meaning if you had comments on, received
      comments, and then turned comments off … nothing of those previously received
      comments will be seen. I imagine something to do with
    - `<?php if ($comments) : ?><?php endif; ?>`
    - might be helpful in evaluating, and some sort of tiered if/then/else statement
      with the comments and comment_status variables. But that’s as far as I got
      this morning. :p
 *  [thinkbachs](https://wordpress.org/support/users/thinkbachs/)
 * (@thinkbachs)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/how-to-remove-comments-off-section/#post-715090)
 * > Please acquaint yourself with using the search function of the forum.
   > [http://wordpress.org/support/topic/157844?replies=12](http://wordpress.org/support/topic/157844?replies=12)
 * People that write crap responses like this shouldn’t be posting. I can’t tell
   you how many times I’ve started looking for an answer using Google and found 
   a post like this where some self-righteous moron “blesses” us with his magnanimous
   gesture of “good will and supreme intelligence.”
 * This is probably the same guy who goes to an auto repair shop to have his oil
   changed, spark plugs installed, and to have someone tell him where his circuit
   breakers are… Just because you know something, doesn’t mean you know everything.
 *  [mishko](https://wordpress.org/support/users/mishko/)
 * (@mishko)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/how-to-remove-comments-off-section/#post-715099)
 * Everybody who’s looking to turn off the Comments Off text that shows when your
   comments are off and find that:
 * [http://wordpress.org/support/topic/157844?replies=12](http://wordpress.org/support/topic/157844?replies=12)
   **
   OR** editing the _comments\_popup\_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments»’)_
 * Don’t Work …
 * **then follow Puckrat’s advice** and put an If statement in your template(s) 
   file.
 * Thanks to all from [365Halloween.com](http://www.365halloween.com)
 *  [thisisedie](https://wordpress.org/support/users/thisisedie/)
 * (@thisisedie)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/how-to-remove-comments-off-section/#post-715100)
 * > People that write crap responses like this shouldn’t be posting.
 * People that can’t look for and find the answers to simple questions that have
   already been answered a thousand times shouldn’t be using WordPress.
 *  [Anna Johansson](https://wordpress.org/support/users/vintagemaniac/)
 * (@vintagemaniac)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/how-to-remove-comments-off-section/#post-715105)
 * Detecting some hostility, anyone?
 * *giggle*
 * Let’s all be friends now.
 *  [Justin Tadlock](https://wordpress.org/support/users/greenshady/)
 * (@greenshady)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/how-to-remove-comments-off-section/#post-715106)
 *     ```
       <?php comments_popup_link('0 comments', '1 comment','% comments', 'comments-link', false); ?>
       ```
   
 * Using `false` removes the “Comments Off” message.
 *  [itsnotlevel](https://wordpress.org/support/users/itsnotlevel/)
 * (@itsnotlevel)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/how-to-remove-comments-off-section/#post-715112)
 * thanks for the detailed posts…..really helped!!! a lot of people dont even let
   people know they fixed their problem….what good does that do any of us, right……
   thanks again!!!
 * Paul
 *  [boorg](https://wordpress.org/support/users/boorg/)
 * (@boorg)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/how-to-remove-comments-off-section/#post-715119)
 * I did it so…:
    in my template folder …wp-content/themes/K2 edit CSS file… where
   there was something about comments, feeds, rss, and rest of stuff I wanted to
   hide… I simply add: ** display:none;** eg.: .comments { text-align: left; margin:
   30px 0 0; position: relative; **display:none;**
 *  }
 *  [donbukriv](https://wordpress.org/support/users/donbukriv/)
 * (@donbukriv)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/how-to-remove-comments-off-section/#post-715120)
 * Hey Boorg,
 * Your solution worked perfectly.
 * Thanks man!

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘How to remove Comments off section’ is closed to new replies.

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)
 * [remove](https://wordpress.org/support/topic-tag/remove/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 15 replies
 * 14 participants
 * Last reply from: [donbukriv](https://wordpress.org/support/users/donbukriv/)
 * Last activity: [17 years, 5 months ago](https://wordpress.org/support/topic/how-to-remove-comments-off-section/#post-715120)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
