# Make staff users more recognizable with customized avatars, posts, and mentions

**URL:** https://meta.discourse.org/t/make-staff-users-more-recognizable-with-customized-avatars-posts-and-mentions/142794
**Category:** Site Management
**Tags:** css, how-to, users
**Created:** [April 23, 2020, 4:48pm UTC](https://meta.discourse.org/t/make-staff-users-more-recognizable-with-customized-avatars-posts-and-mentions/142794 "2020-04-23T16:48:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Discourse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discourse/32/148734_2.png) [@Discourse](https://meta.discourse.org/u/Discourse)
#### Post date: [April 23, 2020, 4:48pm UTC](https://meta.discourse.org/t/make-staff-users-more-recognizable-with-customized-avatars-posts-and-mentions/142794/1 "2020-04-23T16:48:00Z")

</div>

There are various methods that can be used to make a staff user immediately recognizable to other users.

## Show moderator shield

Any staff user who is moderator, or admin **and** moderator, will have the moderator shield next to the username.

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/0/801c1ad0871d19001bfae0aba5b3efe3df5ba6aa.png)

> 🗨 **Tips** : _the shield will not appear if the staff user has the role of admin but not moderator._

**CSS to change color of the shield**

> **Change color for all Staff users**
>
> ```css
> /*Change color for all Staff users*/
> span.username.staff .d-icon.d-icon-shield-halved {
> color: #00A9DB;
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/5/8/58998c71e68c558a31915da17282e83a26f66069.png)
> 
> To change the shield’s color in every place where it appears, not only in a topic:
> 
> ```plaintext
> span.username.staff .d-icon.d-icon-shield-halved,
> .user-card .first-row .names .d-icon.d-icon-shield-halved,
> .user-profile-names .d-icon.d-icon-shield-halved {
> color: #00A9DB;
> }
> 
> ```

> **Change color differentiating ADMIN users from MOD users**
>
> ```css
> /*Change color differentiating ADMIN users from MOD users*/
> span.username {
> &.moderator .d-icon.d-icon-shield-halved {
> color: green;
> }
> 
> &.admin .d-icon.d-icon-shield-halved {
> color: red;
> }
> } 
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/8/3/837dcc336d3511e4d17eca0f5f7681007c0e89f0.png)

**CSS to hide the shield**

> **Hide the shield only on posts**
>
> ```css
> .names .svg-icon-title {
> display: none;
> }
> 
> ```

> **Hide the shield on posts and user card**
>
> ```css
> .names .svg-icon-title, 
> .user-card .names .d-icon.d-icon-shield-halved {
> display: none;
> }
> 
> ```

## Add titles

Any staff user can access to the `/admin/users/list/staff` and can create a title for its own account. The title will appear next to the username of the staff users:

 ![image](https://global.discourse-cdn.com/meta/original/3X/a/d/ad094656d0c4342ec74c97123ff286819d07d928.png)

See as example:

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/c/0c62e01e96d1da579edf0d6f2f1b07d963a6caaf.png)

#### **CSS to customize an existing title**

> **Customize the title for staff members**
>
> ```css
> .names .staff ~ .user-title {
> background: #00A9DB;
> color: white;
> padding: 3px 5px;
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/7/7/7718b543654c0d0e01d11ae31ded2bc70226c7ec.png)

> **Customize the title differentiating admins and mods**
>
> ```css
> .names {
> .moderator ~ .user-title {
> background: green;
> color: white;
> padding: 3px 5px;
> }
> 
> .admin ~ .user-title {
> background: red;
> color: white;
> padding: 3px 5px;
> }
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/e/4/e45b14be5e57f0851fcbb85b2a68ecc027f5bc37.png)

> 🗨 **Tips** : _your organization’s staff users do not have to be actual site admins or mods, they can simply be members without special permissions. To customize their title just create a new custom group, [configure it as primary](https://meta.discourse.org/t/what-does-selecting-primary-group-for-a-user-do/) and add the necessary users. It is possible to set an **automatic title** that will be assigned to all the members by default._

> **Customize the title of non-admin and non-mod users belonging to a primary custom group**
>
> Change `YOUR-CUSTOM-GROUP` with the group name, in the example below it’s `.group--community ~ .user-title` etc.
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/1/0/109fecc88441d7e0b8f4495c6f8145a4beb71c4c.png)
> 
> ```css
> .group--YOUR-CUSTOM-GROUP ~ .user-title {
> background: #00A9DB;
> color: white;
> padding: 3px 5px;
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/7/5/758bab3aa66ae291c07e5cfb12b53faab6730b7a.png)

Remember that a user can choose another title from the one assigned, from the user profile - in this case the title on posts will become the one chosen by the user - and also configure it to “none” - in this case no title will be shown.

To avoid this, it is possible to create a custom title from scratch so that it is not editable from the user side.

**CSS to create a custom title from scratch**

Sample:

![image](https://global.discourse-cdn.com/meta/original/3X/f/2/f27099bb27bd3b285c595abf845908562891dbe4.png)

> **Tips for create a title after the username**
>
> ```css
> /*Display a custom title after the username for all STAFF user
> It will not be displayed if site setting "prioritize username in ux" is disabled */
> .username.staff::after {
> content: 'Staff user';
> color: #00A9DB;
> border: 1px solid #00A9DB;
> border-radius: 8px;
> padding-left: 4px;
> padding-right: 4px;
> margin-left: 5px;
> display: inline-block;
> }
> 
> /*Optional - Reduce size in the user card*/
> .user-card .username.staff::after {
> font-size:.7em;
> margin-left:0px;
> }
> 
> /*Optional - Hide moderator shield only on posts*/
> .names .svg-icon-title {
> display:none;
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/8/5/85e847b1f13ccc125e092a68f898bf6cc199272f.png)
> 
> ```css
> /*Display a custom title after the username differentiating ADMIN users from MOD users
> It will not be displayed if site setting "prioritize username in ux" is disabled */
> .username {
> &.admin:after {
> content: 'Admin user' !important;
> color: red !important;
> border: 1px solid red !important;
> border-radius: 8px;
> padding-left: 4px;
> padding-right: 4px;
> margin-left: 5px;
> display: inline-block;
> }
> 
> &.moderator:after {
> content: 'Moderator user';
> color: green;
> border: 1px solid green;
> border-radius: 8px;
> padding-left: 4px;
> padding-right: 4px;
> margin-left: 5px;
> display: inline-block;
> }
> }
> 
> /*Optional - Hide the icon shield only on posts*/
> .names .svg-icon-title {
> display: none;
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/9/f/9fd32524ea7d9c14403a527ef2bd462b74198a19.png)

> **Tips for create a title after the name**
>
> ```css
> /*Display a custom title after the full name for all STAFF members*/
> span.staff :after {
> content: "Staff";
> color: white;
> background-color: #00A9DB;
> border-radius: 8px;
> margin-left:5px;
> padding-left: 4px;
> padding-right: 4px;
> display: inline-block;
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/7/3/735fc2cf048f40f183e3d2ca54674516a5892d03.png)
> 
> ```css
> /*Display a custom title after the full name differentiating ADMIN users from MOD users */
> span {
> &.admin :after {
> content: "Admin" !important; 
> color: white;
> background-color: red !important;
> border-radius: 8px;
> margin-left: 5px;
> padding-left: 4px;
> padding-right: 4px;
> display: inline-block;
> }
> 
> &.moderator :after {
> content: "Moderator";
> color: white;
> background-color: green;
> border-radius: 8px;
> margin-left: 5px;
> padding-left: 4px;
> padding-right: 4px;
> display: inline-block;
> }
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/8/6/86c82e2b7c4100af6e3c0b61f8b2620bb267d8a6.png)

> **Question: Can I add both custom titles?**
>
> Yes, it possible, although redundant. See the example below:
> 
> ```css
> .username.staff::after {
> content: 'Staff user';
> color: #00A9DB;
> border: 1px solid #00A9DB;
> border-radius: 8px;
> padding-left: 4px;
> padding-right: 4px;
> margin-left: 5px;
> display: inline-block;
> }
> 
> /*Optional - Reduce size in the user card*/
> .user-card .username.staff::after {
> font-size:.7em;
> margin-left:0px;
> }
> 
> /*Optional - Hide moderator shield*/
> .names .svg-icon-title {
> display:none;
> }
> 
> span {
> &.admin :after {
> content: "Admin" !important; 
> color: white;
> background-color: red !important;
> border-radius: 8px;
> margin-left: 5px;
> padding-left: 4px;
> padding-right: 4px;
> display: inline-block;
> }
> 
> &.moderator :after {
> content: "Moderator";
> color: white;
> background-color: green;
> border-radius: 8px;
> margin-left: 5px;
> padding-left: 4px;
> padding-right: 4px;
> display: inline-block;
> }
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/e/2/e2a666154e7a6e30b6a6cdcf8063c960a1dd3c60.png)

## Add avatar flair

You can add a flair at bottom right of a staff user’s avatar:

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/6/76df9e993b9011a14fa6d2ee045490e6d47908d3.png)

You need to create a custom group, add staff users as members and make the group primary. See [Add group flair on member avatars](https://meta.discourse.org/t/create-a-group-that-automatically-adds-associated-flair-to-its-members-avatars/82700) for details.

If you want to add a **custom image** instead of an icon, you can upload it to your website and use the URL as described in the [Including assets in remote themes and components section](https://meta.discourse.org/t/include-images-and-fonts-in-themes-and-components/62459) guide. After adding the image in the _Uploads_ section of the theme, the variable of the image and its direct link will appear. Right-click on the direct link and copy the link in the Avatar Flair Image field.

## Customize staff names and usernames

Using a bit of CSS you can customize the staff usernames on posts.

Note that those shown below are only examples, everyone can modify the style as they prefer!

### Change color of _username_

By default the username appears before the full name

> **Change color of the username for all staff users**
>
> ```css
> span.username.staff a {
> color: #00A9DB;
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/0/6/0654fb291f5f44ca02828f23bd3689b85e469749.png)
> 
> ```css
> 
> ```

> **Change color of the username differentiating admins and mods**
>
> ```css
> span.username {
> &.moderator {
> a {
> color: green;
> }
> }
> 
> &.admin {
> a {
> color: red;
> }
> }
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/d/a/dac07d17fc739dc6e857ff0d000f1df2fbcad503.png)
> 
> This variant uses (almost) the same CSS used for the custom title.
> 
> ```css
> span.username {
> &.moderator {
> a {
> color: white;
> background-color: green;
> border-radius: 8px;
> margin-left: 5px;
> padding-left: 4px;
> padding-right: 4px;
> }
> }
> 
> &.admin {
> a {
> color: white;
> background-color: red;
> border-radius: 8px;
> padding-left: 4px;
> padding-right: 4px;
> }
> }
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/8/a/8ac34d69f4d9511025eff7491e25a7b527c26450.png)

### Change color of _name_

If you want the full name to appear before the username enable the site setting `display name on posts` and disable `prioritize username in ux`

> **Change color of the name for all staff users**
>
> ```css
> .names span.staff a {
> color: #00A9DB;
> } 
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/5/5/559dfa4befd3e3e73c8f4f9a98d9b681c096f65d.png)
> 
> This variant uses (almost) the same CSS used for the custom title.
> 
> ```css
> .names span.staff a {
> color: #00A9DB;
> background-color: #D3F5FF; /*use a light color*/
> border: 1px solid #00A9DB;
> border-radius: 8px;
> padding-left: 4px;
> padding-right: 4px;
> margin-left: 5px;
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/e/4/e4a80aff834001e87f88a90e01f52babf4b6690a.png)

> **Change color of the name differentiating admins and mods**
>
> ```css
> .names span {
> &.moderator {
> a, i {
> color: green;
> }
> }
> 
> &.admin {
> a, i {
> color: red;
> }
> }
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/a/4/a40c788c3edadcf987b597914f2378c99406eb79.png)
> 
> This variant uses (almost) the same CSS used for the custom title.
> 
> ```css
> .names span {
> &.moderator {
> a {
> color: green;
> border: 1px solid green;
> border-radius: 8px;
> padding-left: 4px;
> padding-right: 4px;
> margin-left: 5px;
> }
> }
> 
> &.admin {
> a {
> color: red;
> border: 1px solid red;
> border-radius: 8px;
> padding-left: 4px;
> padding-right: 4px;
> margin-left: 5px;
> }
> }
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/7/2/72993889ff444a2cf02a68d9f12244c0703be4ce.png)

> 🗨 **Tips** : _for some reason you may want to customize a single staff member - maybe the site founder or a particularly valued member. Here is an example of how to target a single user - and yes, the same method can be used for any user, even non-staff-_
> 
> > **Username**
> >
> > ```css
> > /*Change USERNAME with the username of the user*/
> > .topic-meta-data .names span.username a[data-user-card=USERNAME] {
> > color: blue;
> > }
> > 
> > ```
> > 
> > ![image](https://global.discourse-cdn.com/meta/original/3X/7/6/7658195993fe23e3d486e8abb1c1ae8828f5ed09.png)
> 
> > **Name**
> >
> > ```css
> > /*Change USERNAME with the name of the user*/
> > .topic-meta-data .full-name a[data-user-card=USERNAME] {
> > color: blue;
> > }
> > 
> > ```
> > 
> > ![image](https://global.discourse-cdn.com/meta/original/3X/e/e/ee9e0c8b02c687d2c355e15c2c97743d6bfd51f8.png)
> 
> > **Both name and username**
> >
> > ```css
> > .topic-meta-data .names span a[data-user-card=USERNAME] {
> > color: blue;
> > }
> > 
> > ```
> > 
> > ![image](https://global.discourse-cdn.com/meta/original/3X/1/0/10476ef684345d88143fc2238134a9287d254659.png)

## Customize background for staff posts

Staff users can manually add a staff color using the Add Staff Color button on posts.

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/9/c9b5130ad6518d2c0c70d9cf53b037577660cee5.png)

and the result wil be:

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/4/6413cf82c9088a888bf7bffba69a422d9f889d42.png)

> **Add a background color to the whole post**
>
> Adding some lines of CSS, the background color can be applied to the whole post when the Add Staff Color button is clicked.
> 
> ```css
> .moderator {
> .topic-body, .clearfix > .topic-meta-data > .names span.user-title, .topic-body .cooked {
> background: #ffffd0; /*change color here*/
> }
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/c/6/c6aa665f519ca7ab26ef3e2773b278759b8a682f.png)

It is possible to automate this function and customize all posts written by staff users in various ways using CSS. In order to do this, it is necessary to create a **primary custom group** as described above, see the Flair chapter. When your staff members are in a **primary** group you can target their posts with CSS.

> 🗨 **Tips** : _you can add in the group all staff members or decide to add only the admins or only the mods. You can also create two different **primary** groups for admins and mods (note that you will have to use two different names as “admins” and “moderators” are names already used for automatic groups) and set the CSS to differentiate the admin posts from those of the mods._

> **Automatically change posts background for all staff users**
>
> ```css
> 
> /*Change GROUP-NAME with the name of your group*/
> .topic-post.group-GROUP-NAME .topic-body .cooked { 
> background-color: #ffffd0; /*change color here*/
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/b/a/ba939a847a5b84c84ea79a33c06c1a7200c4764b.png)
> 
> or
> 
> ```css
> .topic-post.group-GROUP-NAME .topic-body { 
> background-color: #ffffd0; /*change color here*/
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/1/9/196a51e5340985402e78fc046eb372d04199c172.png)
> 
> or even
> 
> ```css
> /*Change GROUP-NAME with the name of your group*/
> 
> .topic-post.group-GROUP-NAME .topic-body .cooked { 
> background-color: #ffffd0; /*change color here*/
> }
> 
> .topic-post.group-GROUP-NAME .names span { 
> background-color: #ffffd0; /*change color here*/
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/1/b/1b6488ca709f2032404fba742ed82ae9f0aa4863.png)

> **Automatically change posts font color and font family for all staff users**
>
> ```css
> /*Change GROUPNAME with the name of your group*/
> .topic-post.group-GROUPNAME .topic-body .cooked { 
> color: #fec601; /*change font color here*/
> font-family: ......; /* change font family here */
> }
> 
> ```

> **Automatically change only staff replies background and not their first post**
>
> Each post in a topic has an a ID with this format: `post_number`. For the first post in a topic the ID is `post_1`, the replies have IDs like `post_2`, `post_3` and so on.
> 
> If you want to add a background to all staff posts except the first one:
> 
> ```css
> /*Change GROUP-NAME with the name of your group*/
> .topic-post.group-GROUPNAME .onscreen-post:not(#post_1) .topic-body .cooked { 
> background-color: #ffffd0; /*change color here*/
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/a/2/a25eb467cdcb37656bfe104038b1133730588574.jpeg)

#### Add extra content on staff posts

> **A simple signature**
>
> ```css
> .topic-post.group-GROUP-NAME .topic-body .cooked::after {
> content: "From your friendly staff";
> font-size: small;
> color: #d29400;
> float:right;
> font-style: italic;
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/e/c/ec5a6820a3471b20e10e7d0575a7362c45cc5496.png)

> **A simple logo**
>
> ```css
> .topic-post.group-GROUP-NAME .topic-body .cooked::after {
> background-image: url("IMAGE-URL");
> background-repeat: no-repeat;
> background-size: 138px 36px; /*change these values according to the image size*/
> width: 138px; /*change this value according to the image size*/
> height: 36px; /*change this value according to the image size*/
> display: block;
> float: right;
> content: "";
> }
> 
> ```
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/c/9/c978c4d791dc92008991c05e81cdd14f456cfbfa.png)

## Customize mention colors

See: [Customize mention colors](https://meta.discourse.org/t/simple-mention-colors/219023)

> Last edited by @SaraDev 2025-01-14T00:08:27Z
> 
> > **Check document**
> >
> > Perform check on document:

---

<div class="post-metadata">

### Author: ![one1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/one1/32/493591_2.png) [@one1](https://meta.discourse.org/u/one1)
#### Post date: [March 15, 2025, 6:21am UTC](https://meta.discourse.org/t/make-staff-users-more-recognizable-with-customized-avatars-posts-and-mentions/142794/63 "2025-03-15T06:21:42Z")

</div>

> [@Discourse](#):
>
> 🗨 **Tips** : _your staff users do not have to be forcibly site admins or mods, they can simply be members without special permissions._

I’m confused by this. When it says, “your staff users,” is the staff it is talking about the staff of the _organization_ or _business_ (e.g. employees) that have nothing to do with the running of the forum? Because in the context of Discourse “staff” has a very specific meaning, i.e. moderators and administrators.

If that is the case, then I would recommend changing it to read:

> 🗨 **Tips** : _Your organization’s employee users do not have to be actual site admins or mods, they can simply be members without special permissions._
