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
Go to Themes
From Shopify Admin, go to Online Store > Themes.
Customize your theme
Click Customize.
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
└── SlideMost 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
10pxto200px(step2px) 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
Container width
Inherit
Full width
Standard
Wide
Narrow
Sets the content width of the section.
Inherit: Uses the Container width (default) setting from Theme settings → General → Container width.
Full width: Always uses the full available width.
Standard: Uses the Standard container width defined in Theme settings → General → Container width.
Wide: Uses the Wide container width defined in Theme settings → General → Container width.
Narrow: Uses the Narrow container width defined in Theme settings → General → Container width.
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.
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.
Layout
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
4.2. Slide
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.
Related documentation
Header - the navigation bar the Top bar sits above
Last updated