# Highlight moderator messages

**URL:** https://meta.discourse.org/t/highlight-moderator-messages/138155
**Category:** Support
**Created:** [January 9, 2020, 2:55pm UTC](https://meta.discourse.org/t/highlight-moderator-messages/138155 "2020-01-09T14:55:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![helmi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/helmi/32/114772_2.png) [@helmi](https://meta.discourse.org/u/helmi)
#### Post date: [January 9, 2020, 2:55pm UTC](https://meta.discourse.org/t/highlight-moderator-messages/138155/1 "2020-01-09T14:55:27Z")

</div>

I’m currently working on moving an existing forum over to Discourse. So far they used the [color] tag to color any moderation related messages by a moderator in blue (instead of black default text) to show that this part of a post is related to moderation instead of just a normal part of the discussion.

For various reasons I think this is a bad idea but they still want to keep highlighting. So I was thinking about a different way to do it. Did anyone yet do a similar thing? I was thinking about putting a frame around it and attach a little text tag to it like “Moderator’s message” or something similar.

This should be doable, right? Maybe something like a custom code/tag/bbcode? Maybe something does exist already to help do this?

Any hint would be appreciated.

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [January 9, 2020, 3:00pm UTC](https://meta.discourse.org/t/highlight-moderator-messages/138155/2 "2020-01-09T15:00:06Z")

</div>

If you click the … button under the post, then the 🔧 you should see a “add staff color” option. Is that what you’re looking for?

 ![Screen Shot 2020-01-09 at 9.58.16 AM](https://global.discourse-cdn.com/meta/original/3X/f/f/fffebcd55f907f044d43672169d8b8e108055dd3.png)

I’ve done it to this post, for example.

---

<div class="post-metadata">

### Author: ![helmi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/helmi/32/114772_2.png) [@helmi](https://meta.discourse.org/u/helmi)
#### Post date: [January 9, 2020, 4:00pm UTC](https://meta.discourse.org/t/highlight-moderator-messages/138155/3 "2020-01-09T16:00:59Z")

</div>

oh wow - looks like I didn’t use discourse intensively enough yet. Thanks, that was what I was looking for. It only seems to work for a full post and I was more thinking about only for a certain part of the post but that’s definitely good already.

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [January 9, 2020, 4:32pm UTC](https://meta.discourse.org/t/highlight-moderator-messages/138155/4 "2020-01-09T16:32:58Z")

</div>

You also have the option to add a [staff notice](https://meta.discourse.org/t/post-notices-staff-notices/122434) (the option is right below staff color), which will add a separate little section like this above any post:

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

If you really want custom code for only _some_ content in a post you can do that too with a some customization ([Generic bbcode wrapper for theme components](https://meta.discourse.org/t/generic-bbcode-wrapper-for-theme-components/123516)).

So for example, if I wanted to highlight only some text I can wrap some text in my post

```plaintext
[wrap=mod-color]
This is my official moderator warning!
[/wrap]

```

Then in your theme’s custom CSS you can add this (admin \> customize \> themes)

```css
.topic-post.group-team [data-wrap="mod-color"] {
   background: yellow; 
   color: red;
}

```

The important thing to note with this method is that to prevent normal users from using the same code you’ll need to create a new group, and that group would have to be the moderator’s primary group (primary group is configurable from an individual user’s admin page). In my example above I’m using a group named “team”, which is where `.group-team` comes from.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [February 8, 2020, 4:33pm UTC](https://meta.discourse.org/t/highlight-moderator-messages/138155/5 "2020-02-08T16:33:03Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
