Title: Customizing HTML for Comments
Last modified: August 20, 2016

---

# Customizing HTML for Comments

 *  [Lindsey](https://wordpress.org/support/users/lalindsey/)
 * (@lalindsey)
 * [15 years ago](https://wordpress.org/support/topic/customizing-html-for-comments/)
 * I’m trying to customize comments HTML output by following the instructions here:
 * [http://codex.wordpress.org/Function_Reference/wp_list_comments](http://codex.wordpress.org/Function_Reference/wp_list_comments)
 * I’ve basically copied and pasted the function directly as it is on the page, 
   and the corresponding php call into the comments.php file.
 * When I do this, all comments disappear.
 * I’m testing on my local drive, using WordPress 3.1.2 and MAMP.
 * My function file looks like this: [http://pastebin.com/nWg3EJMn](http://pastebin.com/nWg3EJMn)
 * The line calling the comments looks like this:
 *     ```
       <ol class="commentlist">
       <?php wp_list_comments('type=comment&callback=mytheme_comment'); ?>
        </ol>
       ```
   
 * Changing it back to the default:
 *     ```
       <ol class="commentlist">
       <?php wp_list_comments(array('style' => 'ol')); ?>
       </ol>
       ```
   
 * And it works fine… I’m copying directly from the codex (and tried the same-ish
   code found on Digging into WordPress: [http://digwp.com/2010/02/custom-comments-html-output/](http://digwp.com/2010/02/custom-comments-html-output/))
   and neither is working. I just get an empty:
 *     ```
       <ol class="commentlist">
       </ol>
       ```
   

The topic ‘Customizing HTML for Comments’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [Lindsey](https://wordpress.org/support/users/lalindsey/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/customizing-html-for-comments/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
