=== AAWEB Announcement Bar === Contributors: antoapweb Tags: announcement bar, notification bar, top bar, woocommerce, banner Requires at least: 6.8 Tested up to: 7.1 Requires PHP: 7.4 Stable tag: 1.5.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html A lightweight announcement bar with scheduling, dismiss button, device visibility and WooCommerce-safe display rules. == Description == 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. == Installation == 1. Upload the plugin folder to `/wp-content/plugins/` or install the ZIP from Plugins > Add New. 2. Activate the plugin. 3. Go to Settings > AAWEB Announcement Bar. 4. Configure your message and visibility rules. == Frequently Asked Questions == = 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. == Screenshots == 1. Main dashboard and content settings. 2. CTA button customization options. 3. Design and styling controls. 4. Design and styling controls. 5. Display rules and scheduling options. == Changelog == = 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. == Upgrade Notice == = 1.5.0 = Adds countdowns, mobile-specific messaging, click-to-copy coupons, WooCommerce product/category targeting, admin version identification and granular per-section reset controls. = 1.4.5 = Restores the correct English source strings for translations. = 1.4.3 = Adds complete close-button styling controls and fixes frontend theme conflicts.