MyBB Community Forums

Full Version: Overriding usergroup colors in a skin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Alright, I've been having one heck of a time with this. I know I saw it once before but I can't find it now. When I'm creating a skin with a particular theme, how can I or is there a way to override the default usergroup colors? Say for example the default color for the admin group is orange but in that one skin I want it to be white. Is there a way to do that without having to change the defaults themselves?
In your group edit page, the prefix might look like
<span style="color: orange">

Simply add the following code to your CSS for the theme you want to display as orange;
.admin_style {
color: orange;
}

And on the darker theme, put:
.admin_style {
color: #fff;
}

Then change the group prefix to:
<span class="admin_style">
This worked!! Thank you so much. Now I can finally have complete control over usernames and styles in different skins. Something I noticed is you *might* have to refresh the page for the styles to show up. Meaning either an F5 or something that completely reloads the page.