# Check for group membership in Header code?

**URL:** <https://meta.discourse.org/t/check-for-group-membership-in-header-code/72642>\
**Category:** UX\
**Created:** [23 أكتوبر 2017، 9:03م UTC](https://meta.discourse.org/t/check-for-group-membership-in-header-code/72642 "2017-10-23T21:03:24Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)\
**Post date:** [24 أكتوبر 2017، 4:29ص UTC](https://meta.discourse.org/t/check-for-group-membership-in-header-code/72642/5 "2017-10-24T04:29:29Z")

</div>

Actually, it would be nice for Discourse to add group-derived classes to the root body element.

This way makes it very easy to tailor the display according to the user. For example, if I have groups based on counties, I can easily include css that displays the country’s flag as a background.

Or each department can have a different color. And so on. Very very useful.

---

_[View the full topic](https://meta.discourse.org/t/check-for-group-membership-in-header-code/72642)._
