Countdown banner (compact)
The Countdown banner (compact) works like the regular countdown banner, but it is lower and arranges texts, countdown and button in one row from a selectable breakpoint. You find it as the block Countdown banner (compact) 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", "up to 75% off", "Show offers". |
| General | Image, Minimum height, Attachment | Background image, minimum height (default: 200px) 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 | Content alignment, Maximum width | Distribution of the content in the row (Center, Between, Around, Evenly) and width limit. Default: Center and none. |
| 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. |
| Responsive | Breakpoint | From this viewport the banner shows everything in one row. Choice from "Extra small ≥480px" to "Extra extra large ≥1440px" plus "None" and "All". Default: Large ≥992px. |
| 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.
- From the breakpoint on, the contents sit side by side in one row.
- 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.