Title: Custom theme comments.php not used
Last modified: August 31, 2016

---

# Custom theme comments.php not used

 *  Resolved [jeanbonbeurre](https://wordpress.org/support/users/jeanbonbeurre/)
 * (@jeanbonbeurre)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-theme-commentsphp-not-used/)
 * When I’m testing my website with wamp, here’s the comment section I get a certain
   display, which is the one I want. But when I’m browsing my website, the comments
   display suck. To understand the difference, I added a a line of code inside my
   theme’s comments.php file :
 *     ```
       <ol class="comment-list">
       			<?php
       			echo "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz";
       				wp_list_comments( 'type=comment&callback=gossebeau_comment' );	?>
       		</ol><!-- .comment-list -->
       ```
   
 * The “zzz” line is displayed on localhost, but does not appear online, which leads
   me to think that my comments.php file is not used online. I’ve checked, and the
   php version is the same online and on wamp. How can I fix this ?

Viewing 1 replies (of 1 total)

 *  Thread Starter [jeanbonbeurre](https://wordpress.org/support/users/jeanbonbeurre/)
 * (@jeanbonbeurre)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-theme-commentsphp-not-used/#post-7016307)
 * I fixed this. The issue was this line of code, in my theme’s index.php :
    `comments_template("./
   comments.php");`
 * I replaced it by
    `comments_template("/comments.php");`
 * And it’s working fine.

Viewing 1 replies (of 1 total)

The topic ‘Custom theme comments.php not used’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [jeanbonbeurre](https://wordpress.org/support/users/jeanbonbeurre/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/custom-theme-commentsphp-not-used/#post-7016307)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
