# Message to display to only users without accounts/logged in?

**URL:** https://meta.discourse.org/t/message-to-display-to-only-users-without-accounts-logged-in/180069
**Category:** Support
**Created:** [February 17, 2021, 4:34pm UTC](https://meta.discourse.org/t/message-to-display-to-only-users-without-accounts-logged-in/180069 "2021-02-17T16:34:06Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Ben10](https://avatars.discourse-cdn.com/v4/letter/b/439d5e/32.png) [@Ben10](https://meta.discourse.org/u/Ben10)
#### Post date: [February 17, 2021, 4:34pm UTC](https://meta.discourse.org/t/message-to-display-to-only-users-without-accounts-logged-in/180069/1 "2021-02-17T16:34:06Z")

</div>

Is there a way to have a message similar to the one that displays at the top for admins only, but for those visiting your forum who aren’t logged in?  
(Example of the admin message below)  
 ![image](https://global.discourse-cdn.com/meta/original/3X/b/6/b690d0862e9eba2960e54836e2253b2ae3d9691e.png)

---

<div class="post-metadata">

### Author: ![Thomas\_G](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_g/32/200158_2.png) [@Thomas\_G](https://meta.discourse.org/u/Thomas_G)
#### Post date: [February 17, 2021, 5:00pm UTC](https://meta.discourse.org/t/message-to-display-to-only-users-without-accounts-logged-in/180069/2 "2021-02-17T17:00:36Z")

</div>

For non-logged-in users, I think that’s impossible. But, you can use this theme:

> [@Versatile Banner](https://meta.discourse.org/t/versatile-banner/109133):
>
> discourse2Summary Versatile Banner adds a customizable banner to your site.eyeglassesPreview [Preview on Discourse Theme Creator](https://discourse.theme-creator.io/theme/Discourse/versatile-banner)hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-versatile-banner](https://github.com/discourse/discourse-versatile-banner)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component Features This theme component is an evolution of previous banner efforts. The goal is to provide more ease and flexibility through the use…

I think you have the ability to make it public only to non logged in users

---

<div class="post-metadata">

### Author: ![Thomas\_G](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_g/32/200158_2.png) [@Thomas\_G](https://meta.discourse.org/u/Thomas_G)
#### Post date: [February 17, 2021, 5:02pm UTC](https://meta.discourse.org/t/message-to-display-to-only-users-without-accounts-logged-in/180069/3 "2021-02-17T17:02:26Z")

</div>

Or, you can create a banner and add:

```
body:not(.anon) #banner {
  display:none;
}

```

---

<div class="post-metadata">

### Author: ![Ben10](https://avatars.discourse-cdn.com/v4/letter/b/439d5e/32.png) [@Ben10](https://meta.discourse.org/u/Ben10)
#### Post date: [February 17, 2021, 5:34pm UTC](https://meta.discourse.org/t/message-to-display-to-only-users-without-accounts-logged-in/180069/4 "2021-02-17T17:34:34Z")

</div>

Those are 2 very helpful suggestions which I will look into using, thank you very much!

---

<div class="post-metadata">

### Author: ![Thomas\_G](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_g/32/200158_2.png) [@Thomas\_G](https://meta.discourse.org/u/Thomas_G)
#### Post date: [February 17, 2021, 5:44pm UTC](https://meta.discourse.org/t/message-to-display-to-only-users-without-accounts-logged-in/180069/5 "2021-02-17T17:44:08Z")

</div>

My pleasure! 🙂

---

<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: [March 19, 2021, 5:44pm UTC](https://meta.discourse.org/t/message-to-display-to-only-users-without-accounts-logged-in/180069/6 "2021-03-19T17:44:32Z")

</div>

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