For the complete documentation index, see llms.txt. This page is also available as Markdown.

Announcement bar

The Announcement bar is an optional announcement strip that appears above the Header. It's typically used for shipping promises, promotions, or announcements, and is configured independently from the Header.

1. How to access the Announcement bar

1

Go to Themes

From Shopify Admin, go to Online Store > Themes.

2

Customize your theme

Click Customize.

3

Select Announcement bar

In the left sidebar, open the Header group at the top of the page list, then select Announcement bar.

The Top bar appears on every page, so you can edit it from any template.

2. Announcement bar structure

The Top bar is its own section. Add content to it using Add block.

Announcement bar
   ├── Announcement bar blocks: Button, Icon, Menu, Text, etc.
   └── Slide content
       └── Slide

Most Announcement bar blocks work similarly to their standard counterparts in the theme, but the Announcement bar versions include a Hide on mobile option. Use this option to control whether a block is displayed on mobile devices.

Additionally, specific Announcement bar blocks include mobile-tailored enhancements:

  • Menu (Top bar menu): Under Custom on mobile, configure separate mobile typography: choose a predefined text preset or enable custom font styling with independent mobile controls for font family, font size, line height, letter spacing, font weight, and text case.

  • Text (Top bar text): Supports custom desktop and mobile Font size from 10px to 200px (step 2px) when Text style is set to Custom.

  • Button, Icon, and Social media links: Custom Shape options use Sharp (alongside Rounded and Pill or Circle).

  • Responsive sizing & typography fallbacks: Announcement messages automatically scale for mobile screens. When custom mobile typography is not configured, font sizing and styling seamlessly fall back to the selected desktop preset.

For detailed information about each block's settings, see the documentation for the corresponding block:

3. Announcement bar settings

Setting
Options
What it does

Container width

  • Inherit

  • Full width

  • Standard

  • Wide

  • Narrow

Sets the content width of the section.

Container width is always full width on mobile.

Alignment

  • Left

  • Center

  • Right

  • Space between

Positions content horizontally.

Position

  • Top

  • Middle

  • Bottom

Positions content vertically within the strip.

Gap

  • Default

  • 0–32px

  • Custom

Sets the spacing between items in the Announcement bar.

Custom on mobile

  • On

  • Off

Enables separate layout values for mobile.

Inherit color scheme

  • On

  • Off

Uses the inherited colors when on.

Custom background

  • On

  • Off

Enables a background color behind the Announcement bar.

Hide close button

  • On

  • Off

Removes the dismiss control so the message stays visible.

Active pages

  • All

  • Custom

Choose where the announcement bar is enabled.

  • All - Applies the announcement bar to all supported pages.

  • Custom - Applies the announcement bar only to the selected page types or specific pages.

Specific pages

  • On

  • Off

Enables targeting individual pages in addition to the selected page types. Available when Active pages is set to Custom.

Pages

Code-style text field

Specifies template types and names or exact URL paths to target in a code-style input field, separated by commas (for example: product.default, page.about-us, /pages/about).

Generic paths (such as /pages/about) apply in every published language; paths beginning with a published language root (such as /fr/pages/about) apply only to that language.

Available when Active pages is set to Custom and Specific pages is On.

Pages

Specifies template types, template identifiers, or exact URL paths to target, separated by commas (for example: product.default, page.about-us, /products/example).

For multilingual storefronts:

  • A generic path such as /products/example applies to that page across all active storefront languages.

  • A locale-prefixed path such as /fr/products/example applies only to that locale.

Available when Specific pages is On.

Language-aware specific-page targeting

Use a generic storefront path when you want the rule to apply across languages. Use a locale-prefixed path when you want to target only one language version of that page.

4. Slide content

Display announcement messages in a carousel or marquee format.

4.1. General

Controls how announcement messages are displayed.

  • Carousel: Displays announcement messages one at a time and switches between them.

  • Marquee: Continuously scrolls announcement messages across the available space.

4.1.2. When Display is Marquee
Setting
Options
What it does

Direction

  • From right

  • From left

Sets the direction in which the announcement messages move.

  • From right: Moves the messages from right to left.

  • From left: Moves the messages from left to right.

Speed

  • Slow

  • Normal

  • Fast

Sets the scrolling speed of the marquee.

Enable pause on hover

  • On

  • Off

Pauses the marquee while the cursor is over it.

Enable drag interaction

  • On

  • Off

Allows visitors to drag the marquee content.

Layout

Setting
Options
What it does

Width

  • Fit

  • Fill

  • Custom

Sets the width of the announcement content.

  • Fit: Sizes the announcement to fit its content.

  • Fill: Stretches the announcement to fill the available width. (Only available when Display is set to Carousel)

  • Custom: Sets a custom width using a percentage or pixel value.

Gap

  • Default

  • 0–32px

  • Custom

Sets the space between repeating announcement content in the marquee.

Only available when Display is set to Marquee

Custom on mobile

  • On

  • Off

Sets the exact gap between repeating announcement content on mobile.

Style

Inherit color scheme

Controls whether the announcement uses the color scheme of its parent section.

  • On: Uses the inherited color scheme.

  • Off: Lets you select a different color scheme.

Mask gradient (Only available when Display is set to Marquee)

Adds a gradient mask to the edges of the marquee content.

If the content inside a Slide is longer than the available width, it automatically switches to a marquee to keep the full content visible. Long content stays on a single line and does not wrap to multiple lines.

4.2. Slide

Setting
Options
What it does

Alignment

  • Left

  • Center

  • Right

Sets the horizontal alignment of the content inside the Slide.

Position

  • Top

  • Middle

  • Bottom

Sets the vertical position of the content inside the Slide.

Gap

  • Default

  • 0-32px

  • Custom

Sets the spacing between content blocks inside the Slide.

Custom on mobile

  • On

  • Off

Enables separate layout values for the Slide on mobile devices.

Inherit color scheme

  • On

  • Off

Controls whether the Slide uses the color scheme inherited from Slide content.

Content blocks

A Slide can contain multiple content blocks, such as Icon and Text.

Block
Description
Link

Icon

Adds an icon to the announcement message. The Icon block can be linked to an existing link destination.

See Icon.

Text

Adds text to the announcement message. The Text block can be linked to an existing link destination.

See Text.

  • Header - the navigation bar the Top bar sits above

Last updated