# Conditional header text based on group membership

**URL:** <https://meta.discourse.org/t/conditional-header-text-based-on-group-membership/123348>\
**Category:** Development\
**Created:** [18 ביולי,‏ 2019,‏ 9:04pm UTC](https://meta.discourse.org/t/conditional-header-text-based-on-group-membership/123348 "2019-07-18T21:04:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [18 ביולי,‏ 2019,‏ 9:11pm UTC](https://meta.discourse.org/t/conditional-header-text-based-on-group-membership/123348/2 "2019-07-18T21:11:58Z")

</div>

I made a simple theme-component that puts group CSS classes in the html body for easy customizations, I call it [GitHub - discourse/discourse-groups-css-classes-in-body · GitHub](https://github.com/discourse/discourse-groups-css-classes-in-body/) 😅

That way you can create the entire banner in the HTML on the header and hide/show it based on the classes in the body.

---

_[View the full topic](https://meta.discourse.org/t/conditional-header-text-based-on-group-membership/123348)._
