# 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:** 4

<div class="post-metadata">

**Author:** ![Cardinalflyer](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Cardinalflyer](https://meta.discourse.org/u/Cardinalflyer)\
**Post date:** [19 ביולי,‏ 2019,‏ 12:47am UTC](https://meta.discourse.org/t/conditional-header-text-based-on-group-membership/123348/4 "2019-07-19T00:47:48Z")

</div>

I’ve done a lot of experimentation and right now this is working, but I do have a question.

In Header:

```
<div id='renew' class='renewlink' align="center">
    <a href="https://www.example.com/renewlink" target="_blank")
    <font color='red'>
    Please click to renew your membership
    </font>
    </a>
</div>

```

In CSS:

```
.renewlink{
    display: none;
  }

.primary-group-renewal .renewlink{
    display: block;
  }

```

I really expected this to work instead of the double CSS entry above and it did not. What am I missing here?

```
:not(.primary-group-renewal) .renewlink{
    display: block;
  }

```

Thanks

---

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