Toast Notification shows a small message in a corner of the screen. It can appear when the page loads, when the visitor scrolls, or when they click a button you choose. It closes itself after a set time, or waits for the visitor to close it.
Each button triggers a different toast type in a different corner of the screen. Click as often as you like.
A success toast also appeared 1.5 seconds after the page loaded, and an info toast appears once you scroll a quarter of the way down the page.
One element per message.
Drop Toast Notification anywhere on the page. It stays hidden until its trigger fires.
Enter the message, pick a type and choose which corner of the screen it appears in.
Show it on page load, after the visitor scrolls, or when they click any element that matches a CSS selector.
Simple messages with sensible options.
Info, Success, Warning and Error each have their own colours and icon. Custom lets you pick your own icon.
Top right, top left, bottom right or bottom left.
Show the toast after the page loads, with an optional delay.
Show the toast once the visitor has scrolled a quarter of the way down the page.
Show it when the visitor clicks any element matching your CSS selector. Turn on Show Every Click to repeat it.
Close the toast after a set time, with a progress line that shrinks as the time runs out.
Set a number of days. Once closed, the toast stays hidden for that visitor until the time is up.
The message accepts dynamic data, such as a custom field or the post title.
Background, text, accent and icon colours, icon size, max width, typography and borders.
Short messages that should be seen but not get in the way.
Mention a sale, a new product or opening hours on page load.
Confirm an action when a visitor clicks a button.
Point readers to a newsletter or offer once they are engaged with the page.
Show a warning about stock or delivery times on product pages.
Show a short notice once and hide it for a set number of days after it is closed.
Explain a feature when a visitor clicks a help icon.
This is the full list of settings in the Breakdance editor, with their default values.
| Control | What it does | Default |
|---|---|---|
| Content | ||
| Preview in Builder | Show the toast inside the builder so you can style it. | On |
| Message | The toast text. Accepts dynamic data. | This is a notification message! |
| Type | Info, Success, Warning, Error or Custom. | Info |
| Custom Icon | Icon used when Type is Custom. | — |
| Position | Top Right, Top Left, Bottom Right or Bottom Left. | Top Right |
| Show Icon | Show the type icon. | On |
| Show Close Button | Show a cross to close the toast. | On |
| Trigger | Page Load, Scroll or Button Click. | Page Load |
| Button CSS Selector | Elements that open the toast when clicked, e.g. .my-button. | — |
| Show Every Click | Show the toast on every click, not just the first. | Off |
| Auto Dismiss | Close the toast automatically. | On |
| Dismiss After (ms) | How long the toast stays open. | 5000 |
| Delay (ms) | Wait before showing the toast once triggered. | 1000 |
| Don't Show Again (days) | Hide the toast for this many days after it closes. 0 shows it every time. | 0 |
| Toast Style | ||
| Background, Text, Accent, Icon colours | Override the colours of the chosen type. | — |
| Icon Size | Size of the icon, 12 to 48px on the slider. | — |
| Max Width | Maximum width of the toast. | 400px |
| Typography, Borders | Text style and borders. | — |
Give the button a class, such as show-offer, set Trigger to Button Click and enter .show-offer as the Button CSS Selector. Any element matching the selector will open the toast.
Yes. Set Don't Show Again to a number of days. Once the visitor closes it, or it closes itself, it stays hidden for that visitor until the days are up.
Yes. Add one element per message, each with its own trigger and position, as on this page.
Once the visitor has scrolled past a quarter of the page, plus any delay you set. It shows once per page view.
Yes. Turn off Auto Dismiss and keep the close button on.
Toast Notifications is included with Phox Elements, along with 150+ other premium elements for Breakdance.