Title: How to customize comments section
Last modified: August 19, 2016

---

# How to customize comments section

 *  [kdesign](https://wordpress.org/support/users/kdesign/)
 * (@kdesign)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/how-to-customize-comments-section/)
 * I was wondering how you can style the layout of comments on posts. For example,
   I’d like to reorder the date, comment, user name, etc., and change the spacing
   and breaks. In previous versions of WordPress I believe you could reorder those
   things directly from the comments.php file. However, it seems the php code for
   the date, name, etc. are all lumped together somehow in some external code that
   I don’t understand how to get to. I know how to style the fonts, colors, etc 
   but I want to have more control on the layout and spacing of the comments as 
   a whole. Any advice?

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/how-to-customize-comments-section/#post-1348088)
 * You’d need to use [wp_list_comments](http://codex.wordpress.org/Template_Tags/wp_list_comments)
   wuth a custom callback and then place your comment code as a function in functions.
   php.
 *  Thread Starter [kdesign](https://wordpress.org/support/users/kdesign/)
 * (@kdesign)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/how-to-customize-comments-section/#post-1348333)
 * I know this may be much to ask but can you give me an example of a custom callback
   and how that comment code will look in the functions.php file?
 * I’m not familiar with the syntax yet… I’ve never had the need to edit so deeply
   into the code. I’d really appreciate it if you can send an example. Please let
   me know if you can. Thanks.

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

The topic ‘How to customize comments section’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [kdesign](https://wordpress.org/support/users/kdesign/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/how-to-customize-comments-section/#post-1348333)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
