# Discourse groepen css classes in body

**URL:** <https://meta.discourse.org/t/discourse-groups-css-classes-in-body/180194>\
**Category:** Product Support\
**Created:** [18 februari 2021 om 13:39 UTC](https://meta.discourse.org/t/discourse-groups-css-classes-in-body/180194 "2021-02-18T13:39:33Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Ed\_Bobkov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_bobkov/32/200014_2.png) [@Ed\_Bobkov](https://meta.discourse.org/u/Ed_Bobkov)\
**Post date:** [18 februari 2021 om 13:39 UTC](https://meta.discourse.org/t/discourse-groups-css-classes-in-body/180194/1 "2021-02-18T13:39:33Z")

</div>

Thanks to @Johani I found this great theme component made by @Falco 🙏 Now all groups of a user are set in the body tag. I was searching for a solution but didn’t find any mention of this component.

[https://github.com/discourse/discourse-groups-css-classes-in-body](https://github.com/discourse/discourse-groups-css-classes-in-body)

I found a strange thing about the component (except admin user). When I add a user to a group, the body tag is not changing - a newly added group is not showed in the body tag.

I refreshed the page, logout, checked in incognito, switched between browsers, checked on different servers… nothing helps.

@Falco, can you please check the problem?

Update: the problem is caused because of the Visibility status of the chosen groups. I had set: Visible to group owners and Admin. That’s why the component couldn’t show the group name in the body tag. If I set to Visibility: Everyone - it started working correctly.

I think this is not a correct work of the component. Am I right?

---

_[View the full topic](https://meta.discourse.org/t/discourse-groups-css-classes-in-body/180194)._
