Post color based on Badge

(Josh) #1

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.

(Sam Saffron) #2

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

(Kane York) #3
.group-discourse {
  background-color: pink;

What does selecting "Primary Group" for a user do?
(Mittineague) #4

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

(Jeff Atwood) #5

Yep the group has to be designated primary.

(system) #6