Thanks, its a great component.
Its posible add a “dismiss” button or “close” button (x).
Really clean and nice banner!
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.
it’s possible to add this functionality, but it has not been added yet
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!!
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.
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!
This topic was automatically closed after 3 days. New replies are no longer allowed.