Skip to content

Announcement bar ​

This guide describes the Announcement bar section.

Use this section to display messages about sales, special discounts, and new products at the top of your store's pages.

An example Announcement bar section on a store's home page.

​The previous image shows an Announcement bar section at the top of a store's home page. In the upper-left corner of the image, part of the Theme editor's section menu is displayed below the section. The menu's Character option is set to "β€”" (the em dash symbol). This setting specifies the symbol displayed between the section's lines of scrolling text. In the image, the symbol is shown between each occurrence of the Free shipping on all orders text.

For general guidance with modifying sections, refer to Sections overview and Shopify help: Sections and blocks.

Configure the Announcement bar section ​

To configure your Announcement bar section:

  1. In the Theme editor, at the top of the page, use the theme templates dropdown menu to select the home page.

    Note

    The section is accessible from all pages, excluding the Checkout, Password, and Gift card pages.

  2. From the side menu, select Announcement bar.

  3. Select a setting described in the following table.

Setting nameDescription
Home page onlySet the Home page only option to on or off. With this setting enabled, the section displays on the home page only.
Hide on mobileUse the Hide on mobile option to show or hide the section on mobile display devices.
UppercaseSet the Uppercase option to on or off. With this option enabled, uppercase is applied to the section's text.
TextIn the Text field, enter body text to display in the section.
LinkUse the Link field to enter an external URL or to select a link to display inside the section.
DisplayUse the Display option to select Scrolling text or Static. This setting determines whether scrolling or static text is displayed in the section. If a visitor has reduced motion enabled, the scrolling text does not animate and is displayed as a static banner.
Scroll > SpeedAdjust the Speed slider between 20 and 400 (seconds) to specify a scroll speed for the section's scrolling text. To use this setting, set the Display option to Scrolling text.
Scroll > DirectionUse the Direction option to set the section's scrolling text to move from Right to left or Left to right. To use this setting, set the Display option to Scrolling text.
Scroll > Repeat textSet the Repeat text option to on or off. With this option enabled, the section's text is scrolled in a continuous stream of repeated text across the section. To use this option, set the Display option to Scrolling text.
Repeat text separator > SpacingUse the Spacing option to select S (small), M (medium), L (large) or XL (extra large). This option specifies a size for the spacing that separates each occurrence of repeated text. To use this option, set the Display option to Scrolling text.
Repeat text separator > TypeUse the Type option to select Gap, Character or Button. This option specifies the type of separator to display between each occurrence of repeated text. To use this option, set the Display option to Scrolling text.
Repeat text separator > CharacterUse the Character option to select Β·, β€’, ↑, β†’, ↓, and more. This option specifies the text character (symbol) to display between each occurrence of repeated text. To use this option, set the Display option to Scrolling text and set the Type option to Character.
Repeat text separator > Repeat characterAdjust the Repeat character slider between 1 and 6 x. This option specifies the number of text characters (symbols) to display between each occurrence of repeated text. To use this option, set the Display option to Scrolling text and set the Type option to Character.
Repeat text separator > Spacing between repeated charactersUse the Spacing between repeated characters option to select None, Hair, Thin, Punctuation, 4-per-em, and more. This option specifies the type of spacing to display between each text character (symbol) that separates each occurrence of repeated text. To use this option, set the Display option to Scrolling text, and set the Type option to Character.
Repeat text separator > Button labelEnter a single line of text in the Button label field. The text you enter is displayed as the label for the button that separates each occurrence of repeated text. To use this option, set the Display option to Scrolling text and set the Type option to Button.
Repeat text separator > Button styleUse the Button style option to select Primary or Secondary. This option specifies a style for the button that separates each occurrence of repeated text. To use this option, set the Display option to Scrolling text and set the Type option to Button.
Color > Color schemeUse the Color scheme picker to select a color scheme for the section. Refer to Colors.
Color > Theme settings (link)Follow the Theme settings link to open the Theme editor's Color theme settings. Use the settings to edit the theme colors for your entire store.
Custom CSSSelect Custom CSS. In the CSS field, enter custom CSS styles to apply only to the current section. Refer to Shopify help: Add custom CSS. To apply custom styles to your entire online store, refer to Theme settings > Custom CSS.
Remove sectionSelect Remove section to delete the section from the current page.

Note

To connect a metafield to a setting that supports metafields, select the Connect dynamic source icon displayed beside the setting in the Theme editor.

To learn how to connect a metafield to a supported setting, refer to Shopify help: Connecting metafields to your theme by using the Theme editor.

Configure a block within an Announcement bar section ​

A default Announcement bar section contains one Text block.

To configure a block for your Announcement bar section:

  1. In the Theme editor, at the top of the page, use the theme templates dropdown menu to select the home page.

  2. From the side menu, expand the Announcement bar section menu.

  3. To configure an existing block, select the block from the side menu.

    To add a new block, select Add block, choose a block to add, and then select the block you added.

    Note

    Inside the section, you can add, remove, show, hide, and move blocks. Refer to Configure blocks inside a section and Shopify help: Sections and blocks.

  4. Apply a block setting described in the following table.

Block nameDescriptionSetting
TextDisplays text inside the section.
  • In the Text field, enter a single line of text to display inside the section.
  • Select Remove block to delete the block from the section.
Free shippingDisplays a free shipping bar inside the section.
  • Configure the threshold in Theme settings > Cart > Free shipping threshold. If free shipping progress is disabled for the market, this block does not display. Refer to Show a free shipping progress bar.
  • Select Remove block to delete the block from the current section.
Countdown timerDisplays a countdown timer inside the section. Note that the block's time is set in the store's time zone.
  • In the Text before timer field, enter a single line of text to display before the block's timer.
  • In the Text after timer field, enter a single line of text to display after the block's timer.
  • In the Text after completion field, enter a single line of text. The text you enter is displayed inside the block after the countdown timer's target date is reached. If left blank, the timer displays "crossed out" zeros.
  • Use the Spacing between timer and before and after text option to apply S (small), M (medium), or L (large) spacing between the countdown timer and the text before and after it inside the block. Alternatively, select None to apply no spacing.
  • Use the Separator type option to select Gap or Character. This option specifies the separator displayed between the block's text and countdown timer. To use this option, set the Spacing between timer and before and after text option to S, M, or L.
  • Use the Character option to select Β·, β€’, ↑, β†’, ↓, and more. This option specifies the type of text character (symbol) to display as a separator between the block's text and countdown timer. To use this option, set the Separator type option to Character.
  • Adjust the Repeat character slider between 1x and 6x. This option specifies the number of text characters (symbols) to display as separators between the block's text and countdown timer. To use this option, set the Separator type option to Character.
  • Use the Spacing between repeated characters option to select None, Hair, Thin, Punctuation, 4-per-em, and more. This option specifies the amount of spacing displayed between each separator inside the block. Separators are displayed between the block's text and countdown timer. To use this option, set the Separator type option to Character.
  • Set the Use current year option to on or off. With this option enabled, the block's countdown timer uses the current year. Alternatively, to set the block's countdown timer to use a specific year, set this option to off and then enter a year in the Year option field.
  • In the Year field, enter a four-digit number that represents the year you want the block's countdown timer to display. For example, enter the year 2029. To use this option, disable the Use current year option.
  • Use the Month option to select the month you want the block's countdown timer to display. For example, select 1 – January, 2 – February, 3 – March, 4 – April, 5 – May, etc.
  • Use the Day option to select the date (day of the month) you want the block's countdown timer to display.
  • Use the Hour (24-hour time) option to select the hour (in 24-hour format) you want the block's countdown timer to display. For example, select 00 (12 a.m. / midnight), 01 (1 a.m.), 02 (2 a.m.), etc.
  • Use the Minute option to select the minute you want the block's countdown timer to display. For example, select 00, 01, 02, etc.
  • Use the Style option to apply a Sentence or Timer style to the block's countdown timer.
  • Set the Flash separators option to on or off. With this option enabled, a flashing animation is applied to the text characters that separate parts of the block's countdown timer. To use this option, set the Style option to Timer.
  • Use the Labels option to select Full or Abbreviated. This option applies a full or short display style to the text labels that describe parts of the block's countdown timer. For example, the Full option applies the labels months, days, hours, minutes, and seconds to the countdown timer. The Abbreviated option shortens these labels to mos, days, hrs, mins, and secs. To use this option, set the Style option to Timer.
  • Set the Hide labels if only time parts are visible option to on or off. When enabled, the block displays remaining hours, minutes, and seconds using a HH:MM:SS format countdown timer, and hides text labels for expired days, months, and years. To use this option, set the Style option to Timer.
  • Select Remove block to delete the block from the section.