# Does discourse have styling conditionals to distinguish between anonymous and logged-in users?

**URL:** https://meta.discourse.org/t/does-discourse-have-styling-conditionals-to-distinguish-between-anonymous-and-logged-in-users/39496
**Category:** Support
**Created:** [2월 12, 2016, 6:32오후 UTC](https://meta.discourse.org/t/does-discourse-have-styling-conditionals-to-distinguish-between-anonymous-and-logged-in-users/39496 "2016-02-12T18:32:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [2월 12, 2016, 6:32오후 UTC](https://meta.discourse.org/t/does-discourse-have-styling-conditionals-to-distinguish-between-anonymous-and-logged-in-users/39496/1 "2016-02-12T18:32:47Z")

</div>

That you can use to show/hide stuff from guests or members?

I want to show a message for guests only in the header - is this possible?

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [2월 12, 2016, 6:36오후 UTC](https://meta.discourse.org/t/does-discourse-have-styling-conditionals-to-distinguish-between-anonymous-and-logged-in-users/39496/2 "2016-02-12T18:36:24Z")

</div>

You can use the `.anon` class (that gets put on the html tag)

---

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [2월 12, 2016, 7:26오후 UTC](https://meta.discourse.org/t/does-discourse-have-styling-conditionals-to-distinguish-between-anonymous-and-logged-in-users/39496/3 "2016-02-12T19:26:22Z")

</div>

Excellent, thanks Cpradio!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [12월 18, 2018, 7:42오후 UTC](https://meta.discourse.org/t/does-discourse-have-styling-conditionals-to-distinguish-between-anonymous-and-logged-in-users/39496/4 "2018-12-18T19:42:21Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [1월 17, 2019, 7:48오후 UTC](https://meta.discourse.org/t/does-discourse-have-styling-conditionals-to-distinguish-between-anonymous-and-logged-in-users/39496/5 "2019-01-17T19:48:42Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
