> For the complete documentation index, see [llms.txt](https://staylime.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://staylime.com/docs/avante-themes/global-sections/header-and-navigation/announcement-bar.md).

# Announcement bar

Add a promotional bar above the header with rotating text, icons, images, countdown timers, and homepage or inner-page targeting.

A slim promotional strip above the header. Use it for free shipping notices, seasonal sales, new arrivals, or any message you want every visitor to see first. Supports multiple rotating slides, icons, images, and countdown timers.

***

### How to find

**Theme Editor → Announcement bar** — first in the section list, above the header, on every page.

{% hint style="info" %}
The Announcement bar is a permanent part of the layout, so it can't be dragged to another position or removed from the list. To hide it, set its visibility to **Disable** (see below).
{% endhint %}

***

### Visibility

By default the bar shows on every page, but you can limit where it appears:

| Option              | Where it shows            |
| ------------------- | ------------------------- |
| Show                | All pages                 |
| Show on homepage    | Homepage only             |
| Show on inner pages | All pages except homepage |
| Disable             | Hidden everywhere         |

This is useful when you want different messaging strategies — for example, a "Welcome" banner only on the homepage, or a "Sale ends tonight" bar only on collection and product pages.

***

### Text block

Each slide in the bar is a **Text** block. You can add multiple slides that rotate automatically.

A few things worth knowing:

**Separate desktop and mobile text** — each slide has two text fields. Use a longer message on desktop and a shorter one on mobile so nothing gets cut off on small screens.

**Icons and images** — every slide can include an icon (50+ built-in options) or a custom image next to the text. A small visual makes the announcement more noticeable.

**Links go inside the text** — there is no setting that makes a whole slide clickable. Both text fields are rich text, so select the words you want to link, use the link button in the toolbar, and style the rest of the sentence around it: "Free shipping over $50 — **shop now**". Remember to add the link to the mobile field as well, since the two fields are independent.

***

### Countdown timer

The Announcement bar has a dedicated **Countdown timer** block — a slide that counts down to a fixed moment and carries its own text, icon and image just like a regular slide.

Set **End date** in `YYYY-MM-DD` format and, optionally, **End time** in `HH:MM`. Both are read in your store's primary timezone from **Shopify Admin → Settings → General**, not the visitor's, so the deadline is the same for everyone. Keep the end date within 99 days of today.

**When the expiration date and time pass** decides what happens afterwards:

| Option               | What visitors see                                  |
| -------------------- | -------------------------------------------------- |
| Show zeros (default) | The timer stays in place, frozen at zero           |
| Hide the timer       | The timer disappears and only the slide text stays |

There is no "expired message" field in this block, so if you want the bar to say something different after the sale ends, plan to swap the slide text yourself.

**Show labels** adds the Days / Hours / Minutes / Seconds captions under the digits and gives them their own colour — worth keeping on when the countdown runs for more than a day, since "3" on its own is ambiguous.

{% hint style="success" icon="sparkles" %}
**Tip:** Combine a countdown timer with a regular text slide — one slide announces the sale, the next shows how much time is left.
{% endhint %}

***

### Autoplay

When you have multiple slides, enable **Autoplay** and set the speed to rotate between them automatically. If autoplay is off, visitors will only see the first slide.

***

### Sticky

Off by default. When **Sticky** is enabled, the announcement bar stays pinned to the top edge of the screen as the visitor scrolls, instead of scrolling away with the rest of the page. Keep it on for a message that has to stay in view — a discount code or a shipping deadline — and off for a welcome line that has done its job after the first screen.

{% hint style="info" %}
**Sticky** belongs to the Announcement bar section and is not the same as **Sticky header** in the Header section. Each one is enabled separately.
{% endhint %}

***

#### Related

* [Header](https://staylime.com/docs/avante-themes/global-sections/header-and-navigation/header.md) — desktop navigation bar
* [Scrolling Promotion](https://staylime.com/docs/avante-themes/sections/banners/scrolling-promotion.md) — similar strip sections for use within page content


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://staylime.com/docs/avante-themes/global-sections/header-and-navigation/announcement-bar.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
