Title: Remove &#8220;leave a comment&#8221;
Last modified: August 19, 2016

---

# Remove “leave a comment”

 *  [v2006](https://wordpress.org/support/users/v2006/)
 * (@v2006)
 * [18 years ago](https://wordpress.org/support/topic/remove-leave-a-comment/)
 * How to I remove “leave a comment”
 * I don’t want any references to comments displayed on any pages.
 * So far I removed the comments template code from index.php in the template
 * Please advise

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

 *  [wp_guy](https://wordpress.org/support/users/wp_guy/)
 * (@wp_guy)
 * [18 years ago](https://wordpress.org/support/topic/remove-leave-a-comment/#post-761876)
 * If you do not want to use the commenting feature at all… you can remove the code“
   <?php comments_template(); ?>” from the single.php file of your theme.
 *  [haochi](https://wordpress.org/support/users/haochi/)
 * (@haochi)
 * [18 years ago](https://wordpress.org/support/topic/remove-leave-a-comment/#post-761892)
 * Also disable comments on the Discussion page under Settings, simply removing 
   the code isn’t 100% fool-proof.
 *  Thread Starter [v2006](https://wordpress.org/support/users/v2006/)
 * (@v2006)
 * [18 years ago](https://wordpress.org/support/topic/remove-leave-a-comment/#post-761995)
 * Thanks wp_guy but I don’t have a single.php file in my template
 * I have..
 * archives
    comments footer functions header home index l_sidebar r_sidebar page
   search style 404 images folder
 * What other file do I need to edit?
 * haochi – disabling comments in the admin panel is what I did first.
 *  [wp_guy](https://wordpress.org/support/users/wp_guy/)
 * (@wp_guy)
 * [18 years ago](https://wordpress.org/support/topic/remove-leave-a-comment/#post-762032)
 * If you don’t have a single.php… then index.php is used instead… do you see a “
   <?php comments_template(); ?>” in your index.php file?
 *  Thread Starter [v2006](https://wordpress.org/support/users/v2006/)
 * (@v2006)
 * [18 years ago](https://wordpress.org/support/topic/remove-leave-a-comment/#post-762043)
 * Thanks…I mentioned that I had already done this in my original post.
    The template
   is gone but I still have “leave a comment” at the bottom of my posts. See here:
   selfhelpguide.net
 * How do I get rid of this link?
 *  [wp_guy](https://wordpress.org/support/users/wp_guy/)
 * (@wp_guy)
 * [18 years ago](https://wordpress.org/support/topic/remove-leave-a-comment/#post-762049)
 * Is it just the “leave a comment” text? no comments form?
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years ago](https://wordpress.org/support/topic/remove-leave-a-comment/#post-762055)
 * Look for this in index.php,
 * `<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments(%)'));?
   >`
 * or something VERY similar. Thats what you are looking to delete.
 * If you cant locate it, provide a link to where your current theme can be downloaded.
   Please not a “here is an almost link”, but the actual page.
 *  Thread Starter [v2006](https://wordpress.org/support/users/v2006/)
 * (@v2006)
 * [18 years ago](https://wordpress.org/support/topic/remove-leave-a-comment/#post-762094)
 * Yes, it’s just the “leave a comment” text
    The comments template has been deleted.
 * whooami…I couldn’t locate it in index.php
 * Actual page….
    selfhelpguide.net
 * Download link for template
    [http://www.briangardner.com/themes/downtown-java-wordpress-theme.htm](http://www.briangardner.com/themes/downtown-java-wordpress-theme.htm)
 * Thank you
 *  [wp_guy](https://wordpress.org/support/users/wp_guy/)
 * (@wp_guy)
 * [18 years ago](https://wordpress.org/support/topic/remove-leave-a-comment/#post-762097)
 * Actually the code that whooami mentioned is found in archive.php for that theme.
 *  Thread Starter [v2006](https://wordpress.org/support/users/v2006/)
 * (@v2006)
 * [18 years ago](https://wordpress.org/support/topic/remove-leave-a-comment/#post-762117)
 * Thanks
    I removed it from this code in archives.php but “leave a comment” still
   remains on in the post on the home page.
 * <div class=”postmeta”>
    <p><?php the_time(‘F j, Y’); ?> | Filed Under <?php the_category(‘,‘)?
   > |  <?php edit_post_link(‘(Edit)’, ”, ”); ?></p> </div>
 * Please advise
 *  [wp_guy](https://wordpress.org/support/users/wp_guy/)
 * (@wp_guy)
 * [18 years ago](https://wordpress.org/support/topic/remove-leave-a-comment/#post-762122)
 * Maybe it’s home.php …
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years ago](https://wordpress.org/support/topic/remove-leave-a-comment/#post-762123)
 * home.php
 *     ```
       <div class="postmeta">
       			<?php the_time('F j, Y'); ?> | Filed Under <?php the_category(', ') ?> | <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?>&nbsp;<?php edit_post_link('(Edit)', '', ''); ?>
   
       		</div>
       ```
   
 * I told you what to look for, you have to take a little initiative and look through
   the other files… :<
 *  Thread Starter [v2006](https://wordpress.org/support/users/v2006/)
 * (@v2006)
 * [18 years ago](https://wordpress.org/support/topic/remove-leave-a-comment/#post-762126)
 * Worked!
 * Thanks very much for your patience.
 * I wish you well.

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

The topic ‘Remove “leave a comment”’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 13 replies
 * 4 participants
 * Last reply from: [v2006](https://wordpress.org/support/users/v2006/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/remove-leave-a-comment/#post-762126)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
