跳到内容

Easy Notification Bar

v1.7

WPExplorer · 2019年6月20日 上架

A simple plugin for displaying a notice at the top of your website that can be closed by the visitor. Completely free and minimal without any upsells.

正在使用
9,000+
评分
4.6 / 5
累计下载
15 万
最近更新
2026年3月11日
16 条评价需要 WordPress 6.3+已测试到 6.9.12PHP 7.4+

贡献者

截图

Easy Notification Bar

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).

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums