Title: Role Colors
Last modified: August 22, 2016

---

# Role Colors

 *  [akyboy](https://wordpress.org/support/users/akyboy/)
 * (@akyboy)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/role-colors/)
 * Hi Guys
 * Is there a mod to change User table colors by roles.
 * For example:
 * Now we only have Red for blocked users:
 * [http://www.serdarevic.net/screens/2014-12-03_11-11-43.png](http://www.serdarevic.net/screens/2014-12-03_11-11-43.png)
 * I would like to be able to specify color for some other roles if possible?
 * Thanks

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

 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/role-colors/#post-5541874)
 * Is this the table at Admin page > Users? It doesn’t look like mine, or is it 
   from a plugin, if so which one?
 * If you inspect the markup, do the tr elements for the different types of users
   have different classes? If so, you could use some css, eg:
 *     ```
       tr.participant {background:Green}
       tr.blocked {background:Pink}
       ```
   
 * [http://www.w3schools.com/html/html_colornames.asp](http://www.w3schools.com/html/html_colornames.asp)
 *  Thread Starter [akyboy](https://wordpress.org/support/users/akyboy/)
 * (@akyboy)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/role-colors/#post-5541901)
 * Thanks lorro for answer,…
 * I have around 30 plugins so not sure what it doesnt look like, can you highlight
   on my screenshot and ill try to figure out what plugin it is )))
 * thanks for tips on colors, i will try that asap
 *  [Quin](https://wordpress.org/support/users/quin452/)
 * (@quin452)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/role-colors/#post-5541903)
 * This will be edited in the CSS, so it needs live data (cannot inspect an image).
 *  Thread Starter [akyboy](https://wordpress.org/support/users/akyboy/)
 * (@akyboy)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/role-colors/#post-5541905)
 * Quin, i was referring to the plugin i am using he asked me 😛
 * But, regarding css, i am trying to add it to theme css, but it doesn’t work at
   all.
 * Is there other css for admin panel?
 *  [Quin](https://wordpress.org/support/users/quin452/)
 * (@quin452)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/role-colors/#post-5541907)
 * Does it mention not being able to edit the CSS in the Editor (something about
   permissions)?
 * If you cannot edit, you will need to change the permissions for the files/folders
   on the server.
 *  Thread Starter [akyboy](https://wordpress.org/support/users/akyboy/)
 * (@akyboy)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/role-colors/#post-5541908)
 * I am doing it on FTP directly, i don’t have problem editing theme css file, it
   just doesn’t affect anything
 *  Thread Starter [akyboy](https://wordpress.org/support/users/akyboy/)
 * (@akyboy)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/role-colors/#post-5541909)
 * tr.participant {background:Green}
    tr.blocked {background:Pink} tr.[WANTD] Member{
   background:Red}
 * top to does make sense but they don’t work,… but one of my custom roles looks
   weird in css file, probably has to do something with formatting of role name?
 *  [Quin](https://wordpress.org/support/users/quin452/)
 * (@quin452)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/role-colors/#post-5541911)
 * Yea, only use letters and numbers for class names – no symbols
 * It may help to check the source of the page and see what HTML is used to display
   the users.
 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/role-colors/#post-5541913)
 * You can try this plugin for adding css to the admin pages.
    [https://wordpress.org/plugins/add-admin-css/](https://wordpress.org/plugins/add-admin-css/)
 * Try the direct input tab on this service to check that your css is valid.
    [http://jigsaw.w3.org/css-validator/](http://jigsaw.w3.org/css-validator/)“
   tr.[WANTD] Member {background:Red}” is not valid css.
 *  Thread Starter [akyboy](https://wordpress.org/support/users/akyboy/)
 * (@akyboy)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/role-colors/#post-5541914)
 * hmmm
 * looks like this is more advanced than i thought 😛
 * even when i put this:
    tr.participant {background:Green} tr.blocked {background:
   Pink}
 * to my theme css
    it doesn’t change anything,
 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/role-colors/#post-5541916)
 *     ```
       tr.participant {background:Green}
       ```
   
 * was an example only, you need to check the markup to find out if the different
   table rows have different classes, then use those class names instead of “participant”.
   If neither of us can read the markup, this isn’t going to work.
 * If the different types of row don’t have class names, then you need to mess with
   the code, for which PHP skills will be needed.
 * Without being able to see the page in a browser, or even know what plugin you
   are using, its going to be hard to help you with this.
 *  Thread Starter [akyboy](https://wordpress.org/support/users/akyboy/)
 * (@akyboy)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/role-colors/#post-5541917)
 * I understand.
 * but what plugin you are referring too? 🙂
 * Whats different from your admin panel and ill try to figure out what plugin it
   is
 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/role-colors/#post-5541918)
 * Regarding the screenshot of the table in the first post, is this the table at
   Admin page > Users? It doesn’t look like mine, or is it from a plugin, if so 
   which one.
 * What menu items do you click to get to the table in the screenshot?
 *  Thread Starter [akyboy](https://wordpress.org/support/users/akyboy/)
 * (@akyboy)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/role-colors/#post-5541919)
 * [http://www.serdarevic.net/screens/2014-12-05_13-20-15.png](http://www.serdarevic.net/screens/2014-12-05_13-20-15.png)
 * Ya, it is Admin page > Users
 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/role-colors/#post-5541923)
 * OK, looks like you are running the tank theme with the buddypress plugin. There
   are no classes on the rows of users, so simple css won’t work.
 * I found a method here that seems to do what you want:
    [https://wordpress.org/support/topic/how-to-make-a-specific-user-role-stand-out?replies=14](https://wordpress.org/support/topic/how-to-make-a-specific-user-role-stand-out?replies=14)
 * Some coding skills will be needed to get it working.

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

The topic ‘Role Colors’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 15 replies
 * 3 participants
 * Last reply from: [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/role-colors/#post-5541923)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
