ForumCrafts — plugins, themes, extensions, add-ons & tools for real boards — tools for real boardsDownloads & licences →

Site-Wide Notice Bar Plugin for WordPress

WORDPRESS PLUGIN free
Not rated yet Be the first

A slim announcement bar above the site: your message, an optional link, and a dismiss that remembers the visitor's choice.

A one-line notice bar for the top of the site. Write the message, optionally add a link with its own label, pick a background and text colour, and choose which pages it appears on. The bar is printed above your header through wp_body_open, and falls back to just before </body> on themes that never call that hook — so it is never invisible, just lower down.

Visitors can dismiss it, and the choice is remembered in their own browser rather than on your server, so there is no cookie to explain and no table that grows. The message is plain text on purpose: any markup you paste is stripped, and links go in a separate, sanitised field.

No page builder, no jQuery, no webfonts. One self-contained stylesheet, loaded only on the pages where the bar actually prints.

Preview

The bar above a post, with the link and the dismiss button 1 / 2
The bar above a post, with the link and the dismiss button⤢ Tap image for full size

What's included

  • A one-line notice bar printed above your header through wp_body_open, with a footer fallback for themes that never call that hook.
  • Optional link with its own label and an optional new-tab target; the message itself stays plain text so no markup can sneak in.
  • Optional dismiss button that remembers the choice in the visitor's own browser — nothing is stored on your server.
  • Four placements: every page, the front page, archives and lists, or single entries.
  • Background and text colours as six-digit hex, validated on save.

At a glance

PlatformWordPress plugin
Latest versionv1.1.1
Download size16.7 KB
Released25 Oct 2026
Downloads0
AccessFree — sign in to download
Installupload the zip and activate
SettingsSettings > DF Notice Bar
Databasenone — one option row, deleted on uninstall
Requestsnone — no fonts, no scripts, no update checks
LicenceGPL-2.0-or-later

Requirements

  • WordPress 6.2 or newer, PHP 7.4 or newer. Tested on WordPress 7.1.3.

Checksum

Verify your download before you upload it to your board.

b7492b3115123fe285cd75bb3a703516d639d6087afe202b9b1d92ee8cbe0271

Install it

1. Plugins > Add New > Upload Plugin, choose df-notice-bar-wordpress-1.1.1-d4585905.zip, Install Now, then Activate.
2. Open Settings > DF Notice Bar, write the message and tick "Show the notice bar".
3. Optional: add a link label and URL, pick the placement and the colours, then Save.
4. The bar prints after <body> opens. If your theme never calls wp_body_open() it appears just before </body> instead — still visible, just at the bottom.
5. To remove it: Deactivate, then Delete. The option row goes with it.

Questions people ask

Q: My theme does not show the bar at the top. Why?

A: Your theme probably never calls wp_body_open(), which arrived in WordPress 5.2. The bar then prints just before </body> instead. Add <?php wp_body_open(); ?> after <body> in your header template to get it at the top.

Q: Does the dismiss button track people?

A: No. The click is stored in the visitor's own browser storage under the bar's id. Nothing is sent anywhere, and clearing browser data brings the bar back.

Q: Can the message contain a link?

A: Not in the message field — that is plain text by design. Use the separate link label and URL fields, which are sanitised and rendered as a proper anchor.

Q: Will it fight a sticky header?

A: No. The bar is a normal block above the page, so a sticky header sticks below it once you scroll.

Q: Does it send anything anywhere?

A: No external requests of any kind.

All releases

VersionReleasedSizeDownloadsChangelog
v1.1.1 latest 25 Oct 2026 16.7 KB 0 1.1.1 - Re-verified on WordPress 7.1.3 with PHP 8.4: installed, activated and exercised on a clean bench (front end, settings screen, the plugin's own behaviour) with WP_DEBUG on. No notices, warnings, deprecations or errors. readme.txt now declares Tested up to 7.1.3.
v1.1.0 25 Oct 2026 18.0 KB 1 Rebuilt as a complete plugin (1.1.0): a real settings screen under Settings > DF Notice Bar, an uninstall.php, a text domain, a readme and GPL-2.0-or-later in the header.
Added the optional link (label, URL, new tab), the dismiss button and the four placement choices. Added the wp_body_open fallback so the bar appears on every theme.
The option is now removed on uninstall instead of being left behind.
v1.0.0 24 Oct 2026 12.8 KB 1 - First packaged release.
- Toggle, message and accent colour as options.
- Output escaped and hooked to wp_body_open.

Ratings & reviews

No ratings yet — the first one will be real, not seeded

More WordPress plugins

All WordPress plugins