Hi,
Is it possible to change the color of a specific (moderator) the rank title via CSS? I know about the settings in the back end but I specifically mean a specific rank title.
I tried some stuff but I can't seem to target 1 specific rank title.
Hi,
Is it possible to change the color of a specific (moderator) the rank title via CSS? I know about the settings in the back end but I specifically mean a specific rank title.
I tried some stuff but I can't seem to target 1 specific rank title.
It should be possible. I’m not enough of a CSS wiz to provide the answer, but Support has helped me with that type of thing in the past.
Also want to point out that (in Control>Gamification>Ranks) you can customize the username display style for different ranks if you want to differentiate them that way.
It should be possible. I’m not enough of a CSS wiz to provide the answer, but Support has helped me with that type of thing in the past.
I asked support but they didn't really help. I guess that's fair because it's CSS. But I'm kinda convinced this isn't that complicated, but I also am no wiz. :)
They also mentioned this as an alternative. But that's not what I'm looking for. Thanks though!
Also want to point out that (in Control>Gamification>Ranks) you can customize the username display style for different ranks if you want to differentiate them that way.
I asked support but they didn't really help. I guess that's fair because it's CSS. But I'm kinda convinced this isn't that complicated, but I also am no wiz. :)
I’m quite surprised by this! Support has often been helpful to me with very simple CSS and third-party script requests. As a result, I’ve championed their willingness to help on simple things like this to community consultant reviews, in G2 reviews, and many customer reference calls.
If that’s no longer the case, I’m 1.) disappointed, and 2.) going to choose my words more carefully.
This is a pretty simple CSS request to help on. Confirming the element to target and assisting with simple CSS to change it.
This might be something generative AI could help with (i’ve read it can prescribe simple code like this.) Or a search on the CSS to change a color, but you want to target that .usertitle.qa-usertitle element.
Looking at my custom CSS, we have a color change that I’m not quite sure about (pre-dates me, isn’t documented), but it provides us a template to try.
.slider-trigger {
color: #092750;
}
but that suggests that all you need to do for your CSS is
.usertitle.qa-usertitle {
color: #_hexcode goes here_;
}
Looking at my custom CSS, we have a color change that I’m not quite sure about.
.slider-trigger {
color: #092750;
}
but that suggests that all you need to do for your CSS is
.usertitle.qa-usertitle {
color: #_hexcode goes here_;
}
Yeah, that's how far I got. But that changes the color for all rank titles and not specifically the ‘moderator’ one.
Thanks for the effort!
Ahh… I suspect that might be the issue.
I’ve never seen a CSS element specified to the user role. I imagine it’s a universal styling class for all ranks, so there wouldn’t be a way to target only specific ranks.
You should be able to find the user role/rank in the data that loads with the page (the Inspect console of your browser), but I’ve never see that data used with CSS. I think they are two separate components of the page:
And thát is where it gets too complicated for me
Maybe
Hey
<script>
$(".usertitle.qa-usertitle:contains('Moderator')").css('color', 'green');
</script>
Hey
<script>
$(".usertitle.qa-usertitle:contains('Moderator')").css('color', 'green');
</script>
Rookie in your rank title doesn't do you justice,
1 follow up question. If I want to add a rank title in this code, hoe would that work? (Community manager in this case)
To add rank titles you can do the following:
$(".usertitle.qa-usertitle:contains('Moderator'), .usertitle.qa-usertitle:contains('Community Manager')").css('color', 'green');
If you ever had a profile with us, there's no need to create another one.
Don't worry if your email address has since changed, or you can't remember your login, just let us know at community@gainsight.com and we'll help you get started from where you left.
Else, please continue with the registration below.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.