Title: SnapBar
Author: Ray Lee
Published: <strong>2026 年 3 月 16 日</strong>
Last modified: 2026 年 3 月 16 日

---

搜索插件

![](https://ps.w.org/snapbar/assets/banner-772x250.png?rev=3484310)

![](https://ps.w.org/snapbar/assets/icon-256x256.png?rev=3484317)

# SnapBar

 作者：[Ray Lee](https://profiles.wordpress.org/mapperkids1/)

[下载](https://downloads.wordpress.org/plugin/snapbar.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/snapbar/#description)
 * [评价](https://cn.wordpress.org/plugins/snapbar/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/snapbar/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/snapbar/#developers)

 [支持](https://wordpress.org/support/plugin/snapbar/)

## 描述

SnapBar adds a simple, customizable notification bar to the top of your WordPress
site. Perfect for announcements, promotions, or important messages.

**Why SnapBar?**

Most notification bar plugins have 40+ settings, upsell nags, and features you’ll
never use. SnapBar gives you exactly what you need:

 * Rich text message with bold, italic, and links
 * Customizable bar and text colors
 * Close button with “don’t show again” cookie
 * Auto-close timer
 * URL targeting (show on specific pages or exclude pages)
 * Mobile visibility toggle
 * Date scheduling (start/end dates)
 * Admin preview mode — see the bar before enabling it
 * No jQuery on the front end — pure vanilla JS
 * Single-file plugin — lightweight and fast

**12 settings. 3 tabs. That’s it.**

## 屏幕截图

 * [[
 * Settings page — Content tab
 * [[
 * Settings page — Appearance tab
 * [[
 * Settings page — Targeting & Behavior tab
 * [[
 * Notification bar on the front end

## 安装

 1. Upload the `snapbar` folder to `/wp-content/plugins/`
 2. Activate the plugin through the Plugins menu
 3. Go to Settings > SnapBar
 4. Write your message, pick your colors, enable the bar

## 常见问题

### How do I preview the bar without enabling it?

Click the “Preview Bar” button on the settings page. It opens your site with the
bar visible only to you.

### Can I show the bar only on certain pages?

Yes. Under Targeting & Behavior, choose “Only matching URLs” and enter URL patterns(
one per line). For example, entering “shop” will match /shop, /shop/products, etc.

### Does this plugin use jQuery?

Not on the front end. The admin settings page uses jQuery (which WordPress already
loads in admin), but the visitor-facing bar is pure vanilla JavaScript.

### Can I add links in the message?

Yes. The message editor supports bold, italic, links, and basic HTML — the same 
editor you use for WordPress posts.

## 评价

此插件暂无评价。

## 贡献者及开发者

「SnapBar」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Ray Lee ](https://profiles.wordpress.org/mapperkids1/)

[帮助将「SnapBar」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/snapbar)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/snapbar/)，查看[SVN仓库](https://plugins.svn.wordpress.org/snapbar/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/snapbar/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/snapbar/)。

## 更新日志

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**2 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/snapbar/)
 * 标签
 * [alert bar](https://cn.wordpress.org/plugins/tags/alert-bar/)[announcement bar](https://cn.wordpress.org/plugins/tags/announcement-bar/)
   [notification](https://cn.wordpress.org/plugins/tags/notification/)[notification bar](https://cn.wordpress.org/plugins/tags/notification-bar/)
   [top bar](https://cn.wordpress.org/plugins/tags/top-bar/)
 *  [高级视图](https://cn.wordpress.org/plugins/snapbar/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/snapbar/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/snapbar/reviews/)

## 贡献者

 *   [ Ray Lee ](https://profiles.wordpress.org/mapperkids1/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/snapbar/)