Easy Notification Bar

plugin banner

Adds a new section in the WordPress customizer so you can easily enable a notification bar on your site. The plugin allows you to enter your custom no …

Author:WPExplorer (profile at wordpress.org)
WordPress version required:5.2.0
WordPress version tested:6.4.3
Plugin version:1.5
Added to WordPress repository:20-06-2019
Last updated:12-02-2024
Rating, %:90
Rated by:13
Plugin URI:https://wordpress.org/plugins/easy-notificati...
Total downloads:95 420
Active installs:9 000+
plugin download
Click to start download

Easily add a custom top bar notification message to on your site with live customization options via the WordPress customizer. The plugin allows you to enter your notification bar text as well as an optional button to display next to your text. Perfect for notifying visitors of a current sale, hot product, warnings or other important messages.

The Easy Notification Bar plugin makes use of the newer “wp_body_open” action hook introduced in WordPress 5.2.0 which allows the plugin to work better with any theme that has been updated to support the tag. Contrary to other notice bar solutions which rely on absolute positioning, this plugin inserts the notice bar right after the body tag so it should display perfectly without any conflicts on any well-coded theme.

By default, the notification bar is “static” which means it displays at the top of your site so when you scroll down the page it will become “hidden”. This is generally better for usability and SEO. However, in version 1.4 we added a new sticky option which you can enable in the Customizer so that the notification bar remains visible as you scroll down the page. The sticky functionality makes use of the CSS sticky property (not javascript).

Although disabled by default, you can enable a close icon for your notice. When enabled, your visitors will see an “x” icon over the top bar which they can click to hide the message for their current and future sessions. This functionality makes use of localStorage (not cookies). You can also select to hide the notification bar when clicking the call to action button.

Features

  • Sitewide (or homepage only) top notification bar.
  • Easy setup via the WordPress customizer.
  • Optional close icon.
  • Optional sticky display.
  • Custom background, color, text alignment and font size settings.
  • Optional callout button.
  • Responsive design so it looks good on mobile.
  • Minimal code.
  • Vanilla Javascript used for close icon (jQuery not needed).

Screenshots
FAQ
ChangeLog