Can I make a theme available to specific user groups only?

Is it possible to make a theme available to only specific user groups? Basically I would want to have “premium themes” for paid users.

Similarly in a theme like Horizon, it is possible to have color schemes available to only specific user groups.

I understand it may not be possible out of the box but if I were to make it work, what do I need to tinker with?

PS: I did see a similar topic but it was 7 years old. Hoping something has changed since then or at least it is easier to create a custom plugin that would do this. Even if it is a custom plugin, please do point me further ahead so that I can attempt it.

1 Like

not without plugin development

2 Likes

Linking a topic that helped the asker of a similar query:

That was a CSS only solution which will not work when you are restricting access to non paying members. That solution was hiding access to paying members.

Yep I saw that earlier. So the concept and approach remains the same? Asking coz that topic is 7 years old.

well, theme creator still works :slight_smile:

1 Like

A post was split to a new topic: Adjust user titles to look like “team” or “Tester” above

A post was merged into an existing topic: Adjust user titles to look like “team” or “Tester” above

It is just a CSS based solution but will work to restrict users from seeing the premium themes in the selector. Prerequisites is that the user needs to select primary group. Though there is also a TC that will add all user groups as classes.

I run a tech community, everyone would figure out! :sweat_smile:

Oh yes.. that would be amazing.

2 Likes

It is possible. But they might not either. If security is a concern then you will need a custom plugin so the mod is server side vs client side.

If your community though is that advanced users could create a tamper monkey script and theme it from their browser.

1 Like

There isn’t an easy way to keep them from selecting the theme, but you could create a theme that checked the current user’s group and then did something like redirected people to a page that told them to change the theme back or to subscribe.

1 Like