Title: Announcement Bar for WooCommerce – Gatemi
Author: gatemi
Published: <strong>October 31, 2026</strong>
Last modified: October 31, 2026

---

Search plugins

![](https://ps.w.org/gatemi-announcement-bar/assets/banner-772x250.png?rev=3776307)

![](https://ps.w.org/gatemi-announcement-bar/assets/icon-256x256.png?rev=3776307)

# Announcement Bar for WooCommerce – Gatemi

 By [gatemi](https://profiles.wordpress.org/gatemi/)

[Download](https://downloads.wordpress.org/plugin/gatemi-announcement-bar.1.0.0.zip)

 * [Details](https://wordpress.org/plugins/gatemi-announcement-bar/#description)
 * [Reviews](https://wordpress.org/plugins/gatemi-announcement-bar/#reviews)
 * [Development](https://wordpress.org/plugins/gatemi-announcement-bar/#developers)

 [Support](https://wordpress.org/support/plugin/gatemi-announcement-bar/)

## Description

A line across the top of the shop: a sale, a shipping deadline, a delivery
 promise.
Shown between the dates you choose, and gone when they pass.

**A dismissed bar never paints.** The bar is server-rendered, so it works
 before
any script has run and a page cache can serve it. A dismissal is a fact about one
visitor, which a cache cannot know, so one tiny snippet in the head reads the dismissal
cookie and hides the bar before anything paints. A shopper who closed it does not
see it flash back on the next page.

**A bar is text somebody typed, and it is treated that way.** The message
 passes`
wp_kses_post()` at save _and_ at render, because an import bypasses the editor; 
a `javascript:` destination never becomes a link; and a colour is **validated as
a colour** rather than pasted into a style attribute.

#### The full edition

[Gatemi Announcement Bar for WooCommerce](https://gatemi.com/plugins/announcement-bar-for-woocommerce/)

is a separate plugin, sold on gatemi.com, that adds as many bars as you like and
shows each one only where it belongs: on chosen pages or everywhere except the checkout,
by what is in the cart (its value, its categories, or nothing at all), by the visitor’s
role, or before a cutoff time for shipping deadlines. It also adds a bar at the 
foot of the page and one that stays put as they scroll.

Both editions store their bars the same way, so upgrading keeps everything —
 and
anything the full edition wrote is kept here untouched, ready to be picked straight
back up. This edition edits the first bar and shows one: the first that is switched
on, inside its dates and carries none of the full edition’s targeting. A bar that
carries targeting is not shown here at all, because this edition cannot judge it
and guessing could show it to somebody the merchant excluded.

## Screenshots

[⌊The settings screen: the switch, the one bar with its message, button, colours
and dates, and the full edition described in plain text.⌉⌊The settings screen: the
switch, the one bar with its message, button, colours and dates, and the full edition
described in plain text.⌉[

The settings screen: the switch, the one bar with its message, button, colours and
dates, and the full edition described in plain text.

[⌊The bar across the top of the shop, with its message, its button and the close
control.⌉⌊The bar across the top of the shop, with its message, its button and the
close control.⌉[

The bar across the top of the shop, with its message, its button and the close control.

## FAQ

### Does it work with a page cache?

Yes. The bar’s markup is the same for every visitor, and a dismissal is read from
a cookie in the browser, so a cached page is always correct.

### Does this plugin phone home?

No. It makes no HTTP request of any kind.

### I have the full edition too. What happens?

This edition stands down completely and says so on the plugins screen. The two share
their storage, so nothing is lost in either direction.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Announcement Bar for WooCommerce – Gatemi” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ gatemi ](https://profiles.wordpress.org/gatemi/)

[Translate “Announcement Bar for WooCommerce – Gatemi” into your language.](https://translate.wordpress.org/projects/wp-plugins/gatemi-announcement-bar)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/gatemi-announcement-bar/),
check out the [SVN repository](https://plugins.svn.wordpress.org/gatemi-announcement-bar/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/gatemi-announcement-bar/)
by [RSS](https://plugins.trac.wordpress.org/log/gatemi-announcement-bar/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * First release. One announcement bar across the top of the shop, scheduled between
   two dates on the store’s own clock and decided on the server, so a page cache
   can serve it.
 * A dismissed bar never paints: a snippet in the head reads the dismissal cookie
   before the body exists and the stylesheet hides the bar from a class on the root
   element, so the markup is the same for everybody.
 * The message is filtered with wp_kses_post() at save and again at render, the 
   destination goes through esc_url_raw(), and a colour is validated as a colour
   before it reaches a style attribute.

## Meta

 *  Version **1.0.0**
 *  Last updated **2 days ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.4 or higher **
 *  Tested up to **7.1.4**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [announcement bar](https://wordpress.org/plugins/tags/announcement-bar/)[notification bar](https://wordpress.org/plugins/tags/notification-bar/)
   [promotion](https://wordpress.org/plugins/tags/promotion/)[sale banner](https://wordpress.org/plugins/tags/sale-banner/)
   [woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://wordpress.org/plugins/gatemi-announcement-bar/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/gatemi-announcement-bar/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/gatemi-announcement-bar/reviews/)

## Contributors

 *   [ gatemi ](https://profiles.wordpress.org/gatemi/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/gatemi-announcement-bar/)