# Show/hide themes for specific groups?

**URL:** https://meta.discourse.org/t/show-hide-themes-for-specific-groups/115459
**Category:** Support
**Created:** [April 19, 2019, 9:54am UTC](https://meta.discourse.org/t/show-hide-themes-for-specific-groups/115459 "2019-04-19T09:54:38Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [April 19, 2019, 6:56pm UTC](https://meta.discourse.org/t/show-hide-themes-for-specific-groups/115459/4 "2019-04-19T18:56:18Z")

</div>

You can achieve this in a basic way with CSS… here’s how I’d go about it:

1. Assign Patreon tiers to groups, these groups must have `automatically set as primary group` enabled

2. Add all the user-selectable themes you want to make available

3. You can now hide theme options from user preferences using CSS because primary groups are appended to the body tag, and you can target theme options in the dropdowns via data attributes. You’ll want to add this CSS to a theme component and add the component to all of your themes.

So for example if I wanted to hide a theme named “Dark Theme” from everyone _except_ those in the Staff group, I could do this:

```scss
body:not(.staff) { 
  .user-preferences .select-kit-row[data-name="Dark Theme"] {
      display: none;
  }
}

```

So now “Dark Theme” wouldn’t appear in the user preferences dropdown unless you’re in the staff group.

Someone could figure out a way to dig around in the web inspector and enable these themes, but I imagine most people wouldn’t even look.

* * *

All that being said, for the future I think we should definitely consider some “monetization” features that would enable an admin to easily incentivize support with themes, titles, sets of emoji… etc.

---

_[View the full topic](https://meta.discourse.org/t/show-hide-themes-for-specific-groups/115459)._
