# Voeg een 'sluiten'-knop toe aan de welkomstbanner

**URL:** https://meta.discourse.org/t/add-a-dismiss-button-to-the-welcome-banner/270606
**Category:** UX
**Tags:** completed, welcome-link-banner
**Created:** [19 augustus 2022 om 00:58 UTC](https://meta.discourse.org/t/add-a-dismiss-button-to-the-welcome-banner/270606 "2022-08-19T00:58:23Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Rhod](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rhod/32/507923_2.png) [@Rhod](https://meta.discourse.org/u/Rhod)
#### Post date: [19 augustus 2022 om 00:58 UTC](https://meta.discourse.org/t/add-a-dismiss-button-to-the-welcome-banner/270606/1 "2022-08-19T00:58:23Z")

</div>

Thanks, its a great component.  
Its posible add a “dismiss” button or “close” button (x).

---

<div class="post-metadata">

### Author: ![Heddson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heddson/32/96742_2.png) [@Heddson](https://meta.discourse.org/u/Heddson)
#### Post date: [29 november 2022 om 14:46 UTC](https://meta.discourse.org/t/add-a-dismiss-button-to-the-welcome-banner/270606/2 "2022-11-29T14:46:18Z")

</div>

Really clean and nice banner!

Is it possible to add a dismiss-button, or is that perhaps out of scope for this component?

---

<div class="post-metadata">

### Author: ![icaria36](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/icaria36/32/426431_2.png) [@icaria36](https://meta.discourse.org/u/icaria36)
#### Post date: [27 januari 2023 om 13:21 UTC](https://meta.discourse.org/t/add-a-dismiss-button-to-the-welcome-banner/270606/3 "2023-01-27T13:21:20Z")

</div>

> [@Rhod](#):
>
> Its posible add a “dismiss” button or “close” button (x).

> [@Welcome Link Banner](https://meta.discourse.org/t/welcome-link-banner/218743/59):
>
> Is it possible to add a dismiss-button, or is that perhaps out of scope for this component?

If the answer is that there are settings to remove the banner based on trust level (and also for staff) then fine. Still, it would be useful to know, if possible, please. 🙂

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [27 januari 2023 om 14:24 UTC](https://meta.discourse.org/t/add-a-dismiss-button-to-the-welcome-banner/270606/4 "2023-01-27T14:24:47Z")

</div>

it’s possible to add this functionality, but it has not been added yet

---

<div class="post-metadata">

### Author: ![Ayelen\_Rives](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ayelen_rives/32/226978_2.png) [@Ayelen\_Rives](https://meta.discourse.org/u/Ayelen_Rives)
#### Post date: [19 juli 2023 om 14:21 UTC](https://meta.discourse.org/t/add-a-dismiss-button-to-the-welcome-banner/270606/5 "2023-07-19T14:21:57Z")

</div>

Hi! I was looking for something like this. Maybe a “close” or “hide” button. It would be really useful for users who have already seen the banner, but don’t want to lose it, just hide it a bit for a cleaner homepage 🤓

Let us know if you add it. Thank you!!

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [1 augustus 2023 om 20:34 UTC](https://meta.discourse.org/t/add-a-dismiss-button-to-the-welcome-banner/270606/8 "2023-08-01T20:34:57Z")

</div>

I’ve added a setting that allows the banner to be dismissed 🎉

After updating the component you’ll have access to a `can be dismissed` theme setting. When enabled you’ll be able to click the `x` to hide the banner.

 ![Screenshot 2023-08-01 at 4.33.00 PM](https://global.discourse-cdn.com/meta/original/4X/e/2/a/e2a857b0c0351603e5f647fc04043f4bb0ea0ea8.png)

Note that this utilizes browser localStorage, so the dismissal is per-browser. So if you dismiss it on desktop you’ll also need to dismiss it on mobile (this is a limitation with how themes work).

Thanks for the suggestion everyone!

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [5 augustus 2023 om 07:00 UTC](https://meta.discourse.org/t/add-a-dismiss-button-to-the-welcome-banner/270606/9 "2023-08-05T07:00:02Z")

</div>

This topic was automatically closed after 3 days. New replies are no longer allowed.
