Title: Styling Admin Comments
Last modified: August 20, 2016

---

# Styling Admin Comments

 *  Resolved [gingerngo](https://wordpress.org/support/users/gingerngo/)
 * (@gingerngo)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/styling-admin-comments-1/)
 * Hi all,
 * I am trying to create a specific class for admin comments, so any comments by
   any admin on my site is a different colour. There are about 12 different users
   with admin roles, so I’m not quite sure how to proceed.
 * My current idea is to go into wp-includes/comments-template.php.
 * Right now, the code is generating a class “comment-author-*nicename*”.
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * Any advice would be much appreciated.
 * Some links that I’ve referred to:
    [http://codex.wordpress.org/Function_Reference/comment_class](http://codex.wordpress.org/Function_Reference/comment_class)
   [http://www.garyc40.com/2010/04/ultimate-guide-to-roles-and-capabilities/#highlighter_709509](http://www.garyc40.com/2010/04/ultimate-guide-to-roles-and-capabilities/#highlighter_709509)
   [http://codex.wordpress.org/Roles_and_Capabilities](http://codex.wordpress.org/Roles_and_Capabilities)
   [http://codex.wordpress.org/Function_Reference/comment_author](http://codex.wordpress.org/Function_Reference/comment_author)

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/styling-admin-comments-1/#post-2141757)
 * Don’t edit core files. Examine the classes in the generated list of comments 
   and style on them.
 *  Thread Starter [gingerngo](https://wordpress.org/support/users/gingerngo/)
 * (@gingerngo)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/styling-admin-comments-1/#post-2141927)
 * I understand. But then my problem becomes that the generated list does not create
   one for all comment authors who are admin.
 * Is there another way I should look into?
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/styling-admin-comments-1/#post-2141928)
 * what is the code of comments.php of your theme?
    does it use ‘wp_list_comments()’?
   [http://codex.wordpress.org/Function_Reference/wp_list_comments](http://codex.wordpress.org/Function_Reference/wp_list_comments)
   does it use a custom callback function? if so, what is the code of that function?
   if not, you can create one – see for example how it is done in Twenty Ten.
 *  Thread Starter [gingerngo](https://wordpress.org/support/users/gingerngo/)
 * (@gingerngo)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/styling-admin-comments-1/#post-2141931)
 * Hi alchymyth,
 * Really weird, but I found the answer, which incidentally was from a post you 
   had answered previously as well. Amazing! Much thanks!
 * Thanks for the advice as well, esmi!
 * [http://wordpress.org/support/topic/special-comment-color-for-specific-role](http://wordpress.org/support/topic/special-comment-color-for-specific-role)

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

The topic ‘Styling Admin Comments’ is closed to new replies.

## Tags

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

 * 4 replies
 * 3 participants
 * Last reply from: [gingerngo](https://wordpress.org/support/users/gingerngo/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/styling-admin-comments-1/#post-2141931)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
