Countdown banner
The Countdown banner shows a background image with title, subtitle, button and a live countdown of days, hours, minutes and seconds. You set the start and end of your sale. The banner then switches between the phases by itself. You find it as the block Countdown banner in the category Aspina Sale.
Warning: Without a selected image the banner outputs nothing in the storefront. Always select an image and enter Sale from and Sale until.
The three phases
- Before the sale: The banner shows title, subtitle and button from the first Content section and counts down to the start.
- During the sale: It shows the texts and the button from the Content (Sale) section and counts down to the end.
- After the sale: The banner hides itself as soon as the countdown has run out.
Settings
| Tab | Setting | Effect |
|---|---|---|
| General | Sale from, Sale until | Start and end of the sale, to the minute. |
| General | Title, Subtitle, Button text (first section) | Texts before the sale. Default: "Don't miss any discounts!", "up to 75% off", "Notify me". |
| General | Title, Subtitle, Button text (second section) | Texts during the sale. Default: "Black Week Sale", "up to 75% off", "Show offers". |
| General | Image, Minimum height, Attachment | Background image, minimum height (default: 300px) and "Scroll" (default) or "Fixed". |
| General | Link to, Open link in new tab (twice each) | Target of the button before the sale and of the button during the sale, and whether it opens in a new tab. The button only appears if a link is entered. Button text is disabled while the matching link is empty. Entire element clickable is disabled (not available). |
| Layout | Background colour | Background of the element. Default: transparent. |
| Layout | Sections Title, Subtitle | Font family and text colour. Default: font family "Headlines", text colour #ffffff. The section Text has no effect because the banner has no free text field. Vertical alignment and Horizontal alignment are disabled (currently not available). |
| Layout | Section Button | Button style (default: Primary) and Outline button. |
| Layout | Show coloured overlay | Colour layer over the image, optionally as a gradient. Default: off. It comes with Background colour (default: rgba(0, 0, 0, 0.85)), Background colour (2) (default: rgba(0, 0, 0, 0.65)) and Gradient direction (in degrees) (default: 45). |
| Counter | Layout type | Clean countdown (default), Numbers with coloured background or Counters with coloured background. |
| Counter | Section Numbers | Font family (default: Headlines) and text colour (default: #ffffff). With "Numbers with coloured background" there is one Background colour (default: #818181). With "Counters with coloured background" there is one background colour each for days (#ef2f3c), hours (#818181), minutes (#276fbf) and seconds (#f0a202). |
| Counter | Section Labels | Font family (default: Text) and text colour (default: #ffffff) of the labels under the numbers (days, hours, minutes, seconds). |
| SEO & Pagespeed | Use HTML tag as class (Title) | Look of a heading level (h1 to h6) for title and subtitle. Default: class h2. HTML tag (Title) is disabled; the title uses the p tag (default). |
| Advanced | CSS class (Element), CSS class (Title), CSS class (Subtitle) | Your own classes, separated by spaces. |
How the banner behaves in the storefront
- The countdown ticks live in the browser and shows the time until the next event.
- When it switches from "before the sale" to "during the sale", texts and button swap by themselves. The page does not need to be reloaded.
- Once the sale is over, the banner is hidden.
Tips
- Fill in the texts for both phases. Depending on the time, the banner shows one set or the other.
- The default texts are English placeholders. Replace them.