跳到内容

SitePoint Random Hello Bar

v1.0.1

sitepointdevs · 2016年1月21日 上架

Randomly (with weighting) shows a hello bar message on page scroll.

正在使用
10+
评分
暂无
累计下载
1,947
最近更新
2016年1月22日
需要 WordPress 3.0+已测试到 4.3.34

贡献者

截图

Hello Bar in use - An example hello bar being displayed on the Twenty Fifteen theme.
Hello Bar in use - An example hello bar being displayed on the Twenty Fifteen theme.
SP Random Hello Bar Submenu
SP Random Hello Bar Submenu
Settings - Quickly enable the hello bar feature and chose what js/css to enqueue.
Settings - Quickly enable the hello bar feature and chose what js/css to enqueue.
Content - Add as many hello bars as you wish.
Content - Add as many hello bars as you wish.

As descibed in-depth on SitePoint a hello bar is a thin bar of content that slides into view once the user scrolls past a set point on a page.
The message content is up to you, but is ideal for advertising, product annoncements or other messages.

This plugin provides an admin interface to create multiple hello bar messages that can then be randomly displayed on user facing pages.

By setting weightings for each message you can determine how often each is displayed. On each page load a message is randomly selected
(respecting the weightings given). A random number is generated client side before fetching the message content to ensure it is compatible
with caching services such as W3 Total Cache.

All the required javascript and css is included in the plugin and can be set to enqueue via settings.
Alternatively you can roll your own. To help with that the core javascript has been extracted into the sp-hello-bar
npm module for you to include in your own scripts.

Plums

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

导航

说明

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

© 2026 Plums