# Display Header HTML to Logged-in Users Only

**URL:** https://meta.discourse.org/t/display-header-html-to-only-logged-in-users/113806
**Category:** Support
**Created:** [8 באפריל,‏ 2019,‏ 9:52pm UTC](https://meta.discourse.org/t/display-header-html-to-only-logged-in-users/113806 "2019-04-08T21:52:16Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [8 באפריל,‏ 2019,‏ 10:33pm UTC](https://meta.discourse.org/t/display-header-html-to-only-logged-in-users/113806/3 "2019-04-08T22:33:59Z")

</div>

Perhaps like this - wrap it in a div, i.e. `logged_in_content` and hide it from users who are not logged in:

```
html.anon div#logged_in_content {
  display: none;
}

```

as mentioned by @Falco:

> [@Display banner topic only to logged in users?](https://meta.discourse.org/t/display-banner-topic-only-to-logged-in-users/55282/2):
>
> Add the banner topic and hide it with CSS, the html.anon selector can hide it from non logged users.

---

_[View the full topic](https://meta.discourse.org/t/display-header-html-to-only-logged-in-users/113806)._
