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
I would like to be able to specify color for some other roles if possible?
Thanks
-
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}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
This will be edited in the CSS, so it needs live data (cannot inspect an image).
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?
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.
I am doing it on FTP directly, i don’t have problem editing theme css file, it just doesn’t affect anything
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?
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.
You can try this plugin for adding css to the admin pages.
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/
“tr.[WANTD] Member {background:Red}” is not valid css.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,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.
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
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?
http://www.serdarevic.net/screens/2014-12-05_13-20-15.png
Ya, it is Admin page > Users
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=14Some coding skills will be needed to get it working.
The topic ‘Role Colors’ is closed to new replies.