Title: Remove comments from which template?
Last modified: August 18, 2016

---

# Remove comments from which template?

 *  [luhmann](https://wordpress.org/support/users/luhmann/)
 * (@luhmann)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/remove-comments-from-which-template/)
 * I have comments disabled, and I would like to also remove all references to comments
   in the template. I was able to remove the comments from the template in index.
   php, but when I click on an individual post there are still sections informing
   me that comments are not allowed. Which file do I have to edit to remove these?

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

 *  [carthik](https://wordpress.org/support/users/carthik/)
 * (@carthik)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/remove-comments-from-which-template/#post-40692)
 * The individual posts are also index.php files with a parameter…for example [http://yourdomain.com/?p=200214](http://yourdomain.com/?p=200214)
   
   Does that help? SO if you have removed all references from the index.php page,
   then you should be done.
 *  Thread Starter [luhmann](https://wordpress.org/support/users/luhmann/)
 * (@luhmann)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/remove-comments-from-which-template/#post-40710)
 * Well, my attempts to use code tags seem to have failed – you’ll just have to 
   believe me that everything else is commented out. I guess comment tags supercede
   the “code” tags…
 *  Thread Starter [luhmann](https://wordpress.org/support/users/luhmann/)
 * (@luhmann)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/remove-comments-from-which-template/#post-40711)
 * OK – I figured it out. Somehow the comments tags weren’t parsing right. I deleted
   the sections instead of commenting them out and it worked fine!
    The givaway 
   was the fact that a closing comment tag “–>” appeared in the web page!
 *  [journalistic](https://wordpress.org/support/users/journalistic/)
 * (@journalistic)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/remove-comments-from-which-template/#post-41330)
 * what did you edit to remove references to comment on a blog entry? and which 
   file did you need to edit?
 * thanks
 * Leslie

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

The topic ‘Remove comments from which template?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [journalistic](https://wordpress.org/support/users/journalistic/)
 * Last activity: [21 years, 5 months ago](https://wordpress.org/support/topic/remove-comments-from-which-template/#post-41330)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
