This video gets you an announcement banner that can appear on a schedule, hide itself after a few seconds, and remember that a reader already dismissed it. Those three behaviours are separate settings, and mixing them up is the usual reason an alert misbehaves.
Deciding how the alert goes away
Dismissal type is the switch everything else follows, and it offers three:
- None (manual close only) — it stays until the reader closes it.
- Date range — it shows between a Start date and an End date, which is what you want for an event or a holiday closure.
- Countdown (auto-hide after X seconds) — it closes itself after the number of seconds you set.
The field help is explicit that date range and countdown are mutually exclusive; the date fields apply only in date-range mode and the seconds field only in countdown mode. Choose one, then fill in only its companions.
Remembering a dismissal
A banner that returns on every page load is an irritation. When user closes handles it with three settings: show again on the next page load, don't show again today, or don't show again for this browser session. Pair it with Show Close Button, which puts the close control at the top of the paragraph, and the alert behaves the way readers expect.
In countdown mode there is one more courtesy: Show countdown label displays the remaining seconds, so the banner is visibly about to leave rather than mysteriously vanishing mid-sentence.
The message itself
Alert Body is required and nests other paragraphs, so an announcement can hold a heading, formatted text and a link bundle rather than one flat string. A title with its own tag and alignment sits above it, and the Display tab supplies the colours, border, radius, spacing and max width that make a warning look like a warning.
Enable paragraph_bundle_alert on Drupal 11.3 or newer — it needs core's datetime module for the scheduling fields. Then test a countdown of ten seconds before trusting one of three. Field reference on the Paragraphs Bundles module page.
Would rather have this configured for you? That is Drupal development — or get in touch.