In the Support category, user long expresses frustration after spending 12 hours attempting to assign custom icons to specific user groups (including admins and mods) so they display next to usernames and on profile cards, similar to the default shield icon. long clarifies that while they have successfully changed the icon color via CSS, they need to replace the actual SVG icons and extend this functionality to custom groups.
Community members offer various solutions and clarifications:
jordanjay29 suggests adapting methods using the group-GroupName class.
ToddZ outlines a comprehensive approach involving manual or triggered badge grants, post badges, and theme-based SVG replacement.
chapoi asks for details on previous failed attempts.
Moin notes that standard post badges often fail to appear on user cards, highlighting the complexity of the request.
JammyDodger proposes using the built-in ‘flair’ feature for avatars, though long rejects this as aesthetically unappealing.
long reiterates the specific goal: swapping the default admin/mod icons and ensuring custom group icons display consistently across posts, profiles, and profile cards. Despite the complexity, long remains determined to solve the issue to launch their site.
Ok, I have spent 12 hours straight trying to figure this out and I am about to lose my mind. I’ve read dozens of posts here, and nothing works.
I want to assign icons to specific groups (mod and admin included) and have an icon I chose display next to the name, just like the default “shield-halved” does for mods and admins. Like this:
I just want to assign an icon to certain groups to display next to the users name, like admins and mods (and also change the icons for admins and mods). So it’s like this on the user profile and next to their names on all posts:
Say, by “change icons for admins and mods”, do you happen to mean just the color change you’re showing? Because that’s just a CSS thing. Simple if you’re locked into one theme & color scheme; a bit trickier if you offer multiple themes and light/dark mode.
I think the request is more about other groups having an icon like moderators have on posts.
While I can still imagine that using post badges and an sql-triggered-bade can result in something similar, I think this is not really what @long wants, because badges on posts still don’t show for example on usercards
3 places where this is discussed make it a little difficult to keep track of what has already been clarified and suggested
This may have been covered in one of the other topics (or you may have already dismissed the idea), but just in case you’ve not come across it yet the inbuilt ‘mark someone as a member of a group’ is by adding a flair to the avatar. You can see it here on meta for a few groups, including @team.
This doesn’t require any extra customising, so may be an easier option? There’s more info in this topic:
I mean change the actual icon on admin and mod. The color change I did via css. We only have a dark mode theme, not the ability to switch back and forth.
In simpler terms, just want to swap out the admin/mid icons to different ones….and have the abilirty to assign icons to other groups cereated, and place them in that same location next to profile names and have them display in the same areas that the admin/mod icons currently display – posts, profiles, profile cards, etc.