Beskrivelse
AAWEB Announcement Bar helps site owners add a clean top announcement bar without heavy page builders or marketing suites.
Features include:
- Enable or disable the bar from Settings.
- Plain text or safe HTML content.
- Optional shorter mobile-only message override.
- Optional CTA link.
- Dedicated Coupon tab with click-to-copy discount code and instant feedback.
- Granular reset controls for each settings panel and logical subsection, with a separate full reset in Advanced.
- Custom colors, font size, font weight and container width.
- Sticky mode.
- Dismiss button with cookie-based hide period.
- Start and end dates.
- Optional live countdown to the configured end date.
- Desktop-only, mobile-only or all-device visibility.
- Sitewide, homepage-only or WooCommerce checkout-safe display rules.
- WooCommerce targeting for selected product IDs or product category IDs.
- Manual page ID exclusions.
- Preview shortcode.
The plugin is intentionally lightweight and does not connect to any external services.
Skærmbilleder





Installation
- Upload the plugin folder to
/wp-content/plugins/or install the ZIP from Plugins > Add New. - Activate the plugin.
- Go to Settings > AAWEB Announcement Bar.
- Configure your message and visibility rules.
FAQ
-
Does it work with WooCommerce?
-
Yes. It includes an option to hide the bar from cart, checkout and my account pages.
-
Does it work with Elementor?
-
Yes. The bar renders through
wp_body_open, which is supported by modern themes. A footer fallback is included for older themes. -
Can I add HTML?
-
Yes. Safe HTML is allowed and filtered through WordPress post HTML sanitization.
-
Can visitors close the bar?
-
Yes. Enable the dismiss option and choose after how many days the bar should appear again.
-
Is the plugin lightweight?
-
Yes. It only loads a small CSS and JavaScript file on the frontend.
Anmeldelser
Der er ingen anmeldelser for denne widget.
Bidragsydere & udviklere
“AAWEB Announcement Bar” er open source-software. Følgende personer har bidraget til dette plugin.
Bidragsydere“AAWEB Announcement Bar” er blevet oversat til 1 sprog. Tak til oversætterne for deres bidrag.
Oversæt “AAWEB Announcement Bar” til dit eget sprog.
Interesseret i udvikling?
Gennemse koden, tjek SVN repository, eller abonner på udviklerloggen via RSS.
Ændringslog
1.5.0
- Added a clearly visible admin version badge for quick identification.
- Added granular reset controls for each settings panel and logical subsection (content, mobile message, CTA style, colors, layout, targeting, countdown, dismiss behavior and close-button styling).
- Kept the destructive full reset separately in Advanced, with confirmation.
- Improved admin success notices so save/reset messages are readable, temporary, and do not repeat on later actions.
- Added a dedicated Coupon tab and coupon preview so the click-to-copy discount code feature is easy to find.
- Added an optional live countdown to the configured end date.
- Added a separate mobile message override for screens below 768px.
- Added a click-to-copy coupon code button with success feedback.
- Added WooCommerce targeting for selected products and product categories.
- Declared compatibility with WooCommerce High-Performance Order Storage (HPOS).
- Updated compatibility metadata for WordPress 7.1 and WooCommerce 11.1.
1.4.5
- Restored all translatable source strings to English for correct WordPress.org localization.
- Regenerated the translation template with the close-button settings strings.
1.4.3
- Added full close-button styling controls.
- Added close-button background, icon, hover and border colours.
- Added close-button size, icon size, border width, border radius and right-spacing controls.
- Added clear labels for all close-button settings.
- Improved colour controls so HEX values can be typed or pasted reliably.
- Improved live preview synchronization.
- Fixed the bottom-border visibility option.
- Fixed frontend close-button styling conflicts caused by themes.
- Improved HTML content spacing in the preview.
1.4.2
- Changed the default announcement bar state to disabled on new installations.
1.4.1
- Show only the active content editor based on Plain text / Safe HTML mode.
1.1.0
- Added full CTA button styling settings.
- Added CTA hover colours, border, radius, padding, font, margins, position, device visibility and animations.
- Improved frontend layout for text, CTA button and close button.
1.0.0
- Initial release.
