Post color based on Badge

I run a gaming community that uses Discourse, I am wanting to add a way for my members that have supported the group via donation the ability to show off.

Not so much as a paid membership option however I would like to give certain people who’ve been awarded the badge the ability to recolor their post similar to how admins can.

At the moment I have it set to show as their title.

if you give them a primary group its floated up in the css afaik

2 Likes
.group-discourse {
  background-color: pink;
}

3 Likes

I was looking for that but didn’t notice anything I could constantly use as a selector. eg. the first 3 posts in this topic

<div class="ember-view topic-post clearfix regular topic-owner" id="ember27188">

<div class="ember-view topic-post clearfix regular group-discourse" id="ember27190">

<div class="ember-view topic-post clearfix regular" id="ember27192">

I’m guessing the key factor is the

3 Likes

Yep the group has to be designated primary.

2 Likes