# Check for group membership in Header code?

**URL:** <https://meta.discourse.org/t/check-for-group-membership-in-header-code/72642>\
**Category:** UX\
**Created:** [Octobre 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:** 12

<div class="post-metadata">

**Author:** ![Gunnar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gunnar/32/119647_2.png) [@Gunnar](https://meta.discourse.org/u/Gunnar)\
**Post date:** [Janvier 23, 2019, 3:12 UTC](https://meta.discourse.org/t/check-for-group-membership-in-header-code/72642/12 "2019-01-23T03:12:45Z")

</div>

> [@vinothkannans](#):
>
> Better to use CSS here

Actually, as of v2.2.0.beta9+29 `.anon` doesn’t work anymore. OTOH, `.primary-group-patreons` still works fine. Instead, what happens now for users who aren’t logged in is that they’re getting the “Regular member!” banner.

Did something change in Discourse? Anyone else seeing this?

Gunnar

---

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