Linux 软件免费装
Banner图

Varsby – Accessible Notification & Announcement Bar

开发者 mxaxm
更新时间 2026年8月1日 19:14
PHP版本: 7.4 及以上
WordPress版本: 7.0.2
版权: GPLv2 or later
版权网址: 版权信息

标签

notification bar accessibility announcement bar sticky bar alert bar

下载

1.1.8 1.2.0 1.2.1

详情介绍:

Varsby displays a simple, fully customizable notification bar for announcements, promotions and urgent alerts — and it's the one that's genuinely accessible: the bar it renders conforms to WCAG 2.2 AA, a differentiator most announcement-bar plugins skip. Features include: Whether you need a sticky notification bar, a promo or sale banner, a floating call-to-action bar, or a simple header announcement bar, Varsby stays lightweight and only loads its assets when the bar is actually shown.

安装:

  1. In your WordPress dashboard, go to PluginsAdd New.
  2. Search for Varsby.
  3. Click Install Now, then Activate.
  4. Go to SettingsVarsby to configure your message, button, colours and display options.

屏幕截图:

  • **Colour presets and display options** – one-click colour presets with a built-in WCAG AA contrast checker, plus position, behaviour and device toggles.
  • **Frontend example** – a blue alert bar with a call-to-action button at the top of your site.

升级注意事项:

1.2.1 Minor refinements to the admin editor. Your existing bars and settings are preserved. 1.2.0 Save and switch between multiple notification bars, with per-bar dismissal and smarter page/device targeting. Your existing bar and settings are preserved. 1.1.9 Developer update: adds action and filter hooks for extending the bar. No configuration changes required. 1.1.8 New: choose how long a dismissed bar stays hidden (1 to 365 days), plus a more robust keyboard focus ring. Your existing settings are preserved. 1.1.7 Bug fix: stops a fixed top bar being hidden behind a theme's own fixed header (e.g. Divi). No configuration changes required. 1.1.6 Maintenance: removes a redundant translation-loading call that WordPress now handles automatically. No configuration changes required. 1.1.5 Bug fix: stops a fixed bottom bar overlapping the footer on more sticky-footer themes (e.g. Neve) that the 1.1.4 fix missed. No configuration changes required. 1.1.4 Bug fix: stops a fixed bottom bar overlapping the footer on themes with a full-height sticky-footer layout (e.g. Astra). No configuration changes required. 1.1.3 Bug fix: removes a doubled spacing gap around the bar on some themes (e.g. Astra). No configuration changes required. 1.1.2 Accessibility improvements: better screen reader support, keyboard focus handling, contrast checker in the admin colour pickers, and OS-level reduced motion and high contrast support. No configuration changes required. 1.1.1 Minor settings screen improvements: a live enabled/disabled status strip and a save button caption. No configuration changes required. 1.1.0 New features: a call-to-action button, top/bottom and sticky/static positioning, adjustable font size, and simple page targeting, plus a refreshed settings screen. Your existing settings are preserved. 1.0.3 Refreshed admin interface: grouped settings, colour presets, a segmented display control and a live preview. No configuration changes required. 1.0.2 Recommended update: fixes close button visibility, admin preview toggle, cookie security, and accessibility improvements. 1.0.1 Switched to the plugins_loaded hook for loading translations; no action required.

常见问题:

Can I include HTML in my alert message?

Yes, you can use basic HTML tags like <strong>, <em>, and <a>.

How do I add a button?

On the settings page, fill in Button text and Button link in the Content card. Leave the button text blank to hide the button. You can style it with the button colour pickers in the Appearance card.

Can I show the bar at the bottom of the page?

Yes. In the Display card, set Position to Bottom. You can also choose Behaviour: Sticky keeps the bar visible while scrolling, while Static lets it scroll away with the page.

How do I show the bar only on the homepage?

In the Display card, set Show on pages to Front page only.

How do I disable the bar for logged-in users?

On the settings page, turn off the Show the bar to users who are logged in toggle and save.

How long does the bar stay hidden after a visitor dismisses it?

As long as you like. In the Display card, set Stay dismissed for (days) to any value from 1 to 365 (1 day by default). Dismissal is remembered in the visitor's browser, so it works with full-page caches and CDNs.

Will it slow down my site?

No—scripts and styles are only loaded on the front end when the bar is enabled.

Does it work with the block editor / Gutenberg?

Yes. Varsby is independent of the block editor—it doesn't add any blocks, and displays the bar site-wide via a separate settings page, so it works the same whether your site uses Gutenberg, the Classic Editor, or a page builder.

Can I create more than one bar?

Yes. Under SettingsVarsby you can save as many bars as you like and switch which one is enabled. The free version shows one bar at a time — the first enabled bar that matches the current page and device — so you can keep a library of ready-made bars and activate the right one when you need it.

Is there a Pro version?

Not yet. Varsby is free and fully usable as-is—one live bar, done well. A Pro version with extra features (including showing multiple bars at once) is being considered for those who need more.

更新日志:

1.2.1 1.2.0 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.3 1.0.2 1.0.1 1.0.0