WOWSA Announcement Bar
Reusable WordPress announcement bar plugin for WOWSA initiatives
by WOWSA · github.com/rose2023va/wowsa-announcement-bar · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/rose2023va/wowsa-announcement-bar/archive/refs/heads/main.zipA reusable institutional announcement bar for WOWSA initiatives.
Description
One announcement at a time, displayed above the primary navigation across the WOWSA site. Built as a permanent design-system component: reusing it for a new initiative requires only a new lockup, new text and a new destination URL.
Design constraints (fixed, by intent):
- Height 44–48px, WOWSA Navy background, white text
- Antique Gold CTA, underline on hover only
- No gradients, shadows, buttons, photographs or background graphics
- Lockup displayed at 30px high (28px on mobile)
Installation
- Upload the
wowsa-announcement-barfolder to/wp-content/plugins/, or upload the zip via Plugins → Add New → Upload Plugin. - Activate the plugin.
- Go to Settings → Announcement Bar and configure it.
The bar renders automatically even on themes that don't call
wp_body_open (it falls back to injecting itself after the opening
<body> tag). The [wowsa_announcement_bar] shortcode remains available
for manual placement if you'd rather control the exact spot.
Admin controls
- Enable / disable the bar
- Upload or choose an initiative lockup (SVG or PNG, via the media library)
- Edit announcement text
- Edit CTA text and destination URL (with optional new-tab behaviour)
- Optional start and end dates
- Enable / disable the dismiss (×) button
- Exclude the home page, specific page IDs and specific URL slugs
First announcement (WOWSA Awards 2026)
- Lockup: WOWSA Awards 2026 lockup
- Text: 2026 WOWSA Awards nominations are now open. Help recognize the people shaping the next century of open water swimming.
- CTA: Submit a Nomination
- URL: https://wowsaawards.com
Developer notes
Suppress the bar from a theme or plugin:
add_filter( 'wowsa_announcement_bar_display', '__return_false' );
A body class has-wowsa-announcement-bar is added whenever the bar renders,
for themes that need to offset a sticky header.
Changelog
1.0.2
- Point "Visit plugin site" (Plugin URI) at the GitHub repo.
1.0.1
- Fix: bar now renders automatically on themes that never call
wp_body_open(e.g. WilCity), instead of silently not appearing.
1.0.0
- Initial release.