Announcement banner

The announcement banner is a status bar above the header. Status message can be displayed here.

The banner is suitable for the promotion of campaigns, for example. Changes in shipping times due to vacation or absence can also be displayed.

ThemeWare® "Announcement banner"

Configuration

Theme configuration

  1. Go to the tab "Extensions"

  2. Expand the block "Announcement banner (in the header)"

  3. Enable the banner with the configuration "Show announcement banner"

  4. Now configure the "Announcement banner" as you like

    • For example, define whether the "Announcement banner" should be displayed or linked from a certain date or until a certain date.

  5. Save your changes after editing

Content

  • Edit the text of the announcement banner using the following snippet:

    • twt.extension.announcementBanner.content

  • Optional: If necessary, edit the URL with the following snippet:

    • twt.extension.announcementBanner.link

Note: For information on how to edit snippets, see the following instructions: Texts: Editing and translation

Announcement banner closable

With the configuration "Closable", a close button is added to the banner. This allows the visitor to hide the banner for one day.

This is logged via a "local storage" cookie. An seperate entry is added to the cookie consent from Shopware for this purpose. If this "comfort feature" is not agreed to, the close button is not displayed.

Note: Please note that Shopware adds this entry for each installed theme! This option is therefore not recommended if you are using more than one ThemeWare® theme.


Summary

Theme configuration

  • Tab "Extensions" => Block "Announcement banner (in the header)"

Snippets

  • Text

    • twt.extension.announcementBanner.content

  • Link

    • twt.extension.announcementBanner.link

  • Aria label

    • twt.extension.announcementBanner.ariaLabel (available from v3.7 or v4.0)

    • twt.extension.announcementBanner.closeButton.ariaLabel (available from v3.7 or v4.0)

Last updated

Was this helpful?