Skip to main content

Announcement bar

Supported blocks​

  • scrolling-banner
  • button
  • columns
  • countdown-timer
  • heading
  • image
  • localization
  • nav
  • newsletter-form
  • payment-icons
  • social-media-icons
  • stars
  • steps
  • text

Settings​

SettingIDTypeDefaultDescription
Show announcement barenable_announcementcheckboxtrue
PositionpositionselectstaticSticky keeps the bar at the top as the page scrolls. Fixed does the same but takes it out of the flow, so it overlays whatever is underneath.
Enable full widthfull_widthcheckboxfalse
Section classclasstextTailwind utilities for this section. Space separated, e.g. mt-2 mb-4 px-6. Spacing scale: 0-10 plus 15 and 20 (1 = 0.25rem = 4px); responsive with md: / lg:.
Backgroundbgcolor_backgroundSupports solid or gradient colors.
Use theme background schemabg_schemacheckboxfalse
Fixed backgroundbg_attachmentcheckboxfalse
Enable scrolling columnenable_scrollingcheckboxtrueThe marquee is a block of its own: pick it in the editor to change the messages, direction and speed.
Scrolling column widthscrolling_widthrange50Share of the desktop width. Always full width below lg, where the blocks column is normally hidden.
Blocks alignmentblocks_alignmentselectjustify-end
Hide blocks column on mobileblocks_hide_mobcheckboxtrue

Option values​

  • Position (position): In page flow (static), Sticky top (sticky), Fixed top (fixed)
  • Blocks alignment (blocks_alignment): Left (justify-start), Center (justify-center), Right (justify-end)

Presets​

  • Announcement bar

💡 Edit via Shopify Admin → Online Store → Themes → Customize.