# Search-banner: welcome text for unregistered users

**URL:** https://meta.discourse.org/t/search-banner-welcome-text-for-unregistered-users/279390
**Category:** Feature
**Tags:** search-banner
**Created:** [September 18, 2023, 1:35pm UTC](https://meta.discourse.org/t/search-banner-welcome-text-for-unregistered-users/279390 "2023-09-18T13:35:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ecki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ecki/32/264025_2.png) [@ecki](https://meta.discourse.org/u/ecki)
#### Post date: [September 18, 2023, 1:35pm UTC](https://meta.discourse.org/t/search-banner-welcome-text-for-unregistered-users/279390/1 "2023-09-18T13:35:42Z")

</div>

I would like to have the search banner display the subheading depending on if the user is logged in or not. This way I can easily mention that only a subset of categories are available. One option would be to have a general way to have different configs for the same component for multiple levels, the other option is to add a new text for unauthenticated users. “Please register to search in all Categories” vs. “Welcome …”.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [September 18, 2023, 6:28pm UTC](https://meta.discourse.org/t/search-banner-welcome-text-for-unregistered-users/279390/2 "2023-09-18T18:28:43Z")

</div>

Possibly you could achieve what you’re looking for with CSS. I’m not a CSS expert, but was just looking at a similar issue. Something like this added to your theme might do the trick:

```css
.anon .custom-search-banner p:after {
    content: "Please register to search in all Categories.";
    display: block;
}

```

Anon users will see:

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/3/1/03140383488238065f32a5ff56ddc28a7f3c6bb8.png)

Logged in users will see:

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/8/d/e8d543b554e90212bbb4cdc31cbb09f1ddd403ba.png)

If you use this, be sure to test on mobile devices and ideally a few different desktop browsers.

---

<div class="post-metadata">

### Author: ![ecki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ecki/32/264025_2.png) [@ecki](https://meta.discourse.org/u/ecki)
#### Post date: [September 26, 2023, 10:44am UTC](https://meta.discourse.org/t/search-banner-welcome-text-for-unregistered-users/279390/3 "2023-09-26T10:44:04Z")

</div>

Thanks for the tip! I went the easy route and formulated the text more neutral. Still think it would be useful to have out of the box. Is the post here and the tags enough to keep the idea?

---

<div class="post-metadata">

### Author: ![lindsey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lindsey/32/318210_2.png) [@lindsey](https://meta.discourse.org/u/lindsey)
#### Post date: [December 22, 2025, 2:29pm UTC](https://meta.discourse.org/t/search-banner-welcome-text-for-unregistered-users/279390/4 "2025-12-22T14:29:36Z")

</div>

Closing per [Deprecating the Search Banner theme component](https://meta.discourse.org/t/deprecating-the-search-banner-theme-component/379322/)

The functionality requested in this topic is supported by the welcome banner, see [Creating a banner to display at the top of your site](https://meta.discourse.org/t/creating-a-banner-to-display-at-the-top-of-your-site/153718#p-762961-welcome-banner-1)
