How to add an announcement bar with a countdown
The announcement bar is a strip at the top of your store pages. You write the message, and it can count down to the end of one of your offers. This article shows how to set it up, add the theme block it needs, and what happens when the offer ends.
Before you start
- To show a countdown, you need an offer with an end date. Set it in the offer editor under Rules > More options > Active dates. See Offer statuses and schedule.
- The bar needs the Announcement bar block in your theme. You add it in step 6 below.
Set up the bar
- Go to Boosters and open Announcement bar.
- Under Status, turn on Show on your store.
- Under Bar, type your message in Text. It can have up to 120 characters. Use
{{countdown}}where the time left should appear, for example "Summer sale ends in {{countdown}}". - In Count down to, choose the offer the countdown follows. The list shows only your offers that have an end date and have not ended. Upsell offers are not listed. Choose — None — to show the text without a countdown.
- Keep Show the countdown ticked to show the time left, or clear it to show the text only.
- If the page shows the message about the Announcement bar block, select Add block in theme editor. In the theme editor, add the Announcement bar block at the top of the header, then save the theme.
- Back in the app, select Save in the save bar. You see "Announcement bar saved".
The Preview on the right shows how the bar looks. Select Preview on your store to see it on your real store. The store shows your saved settings.
[!INFO] The app cannot always tell whether the block is in your theme. If it cannot tell, it shows one line with instructions and the same button instead of a warning. Check your store yourself to confirm the bar shows.
Options
| Option | What it does |
|---|---|
| Show on your store | Turns the bar on or off. |
| Text | The message. Required while the bar is on. Cannot contain < or >. |
| Count down to | The offer whose end date drives {{countdown}}. |
| Show the countdown | Shows or hides the time left. |
When the offer ends
When the offer you chose ends or is deleted, the bar hides itself. The Count down to box then shows the offer name with the end date, for example "Summer sale (ended Nov 3)", or Deleted offer, with a note such as "This offer has ended — the bar is hidden." To show the bar again, choose — None — or another offer, then select Save.
If the bar does not show
- Check that Show on your store is on and you saved.
- Check that the Announcement bar block is in your theme, and that the app embed is on.
- Changes can take about a minute to reach your store. Wait a minute and reload.
Translate the bar
The bar text is set here, and you translate it on the Translations page. See How to translate your offers and store text.
Related articles
- What are boosters and how do you turn them on?
- How to show today's offers on every page
- Offer statuses and schedule
- How to add the app blocks to your theme
← What are boosters and how do you turn them on? How to show today's offers on every page →