Title: comments.php fallback?
Last modified: August 24, 2016

---

# comments.php fallback?

 *  [sheez44](https://wordpress.org/support/users/sheez44/)
 * (@sheez44)
 * [11 years ago](https://wordpress.org/support/topic/commentsphp-fallback/)
 * I am trying to customize my comments.php and i literally copied an pasted the
   comments.php file from twenty fifteen. However i dont understand how this code
   works. The code only implies an ordered list, but when i view it in chrome it
   has listitems, gravatars and alot of classes etc. So where do those classes comming
   from? I want to customize it to my liking.
 *     ```
       <ol class="commentlist">
            <?php
            wp_list_comments(array(
             // see http://codex.wordpress.org/Function_Reference/wp_list_comments
             // 'login_text'        => 'Login to reply',
             // 'callback'          => null,
             // 'end-callback'      => null,
             // 'type'              => 'all',
             'avatar_size'       => 50
             // 'reverse_top_level' => null,
             // 'reverse_children'  =>
             ));
             ?>
           </ol>
       ```
   

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

 *  [Bill](https://wordpress.org/support/users/chubbycrow/)
 * (@chubbycrow)
 * [11 years ago](https://wordpress.org/support/topic/commentsphp-fallback/#post-5971380)
 * You can read about the `wp_list_comments` function [here](https://codex.wordpress.org/Function_Reference/wp_list_comments).
   The actual function is found in `/wp-includes/comment-template.php`.
 *  Thread Starter [sheez44](https://wordpress.org/support/users/sheez44/)
 * (@sheez44)
 * [11 years ago](https://wordpress.org/support/topic/commentsphp-fallback/#post-5971434)
 * its not about the wp_list_comments function, i know what it does. Maybe i shouldve
   removed that function for clarity. Its about the ol without any li or additional
   classes in comments.php but somehow it outputs the li and classes without me 
   being able to modify it. SO i was wondering where those are coming from
 *  [Bill](https://wordpress.org/support/users/chubbycrow/)
 * (@chubbycrow)
 * [11 years ago](https://wordpress.org/support/topic/commentsphp-fallback/#post-5971465)
 * `<li>`s and at least some of the classes are created by the `comment()` function
   in `comment-template.php`: [https://core.trac.wordpress.org/browser/tags/4.1.1/src/wp-includes/comment-template.php#L1864](https://core.trac.wordpress.org/browser/tags/4.1.1/src/wp-includes/comment-template.php#L1864)

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

The topic ‘comments.php fallback?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Bill](https://wordpress.org/support/users/chubbycrow/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/commentsphp-fallback/#post-5971465)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
