跳到内容

Urban Insight Promobar

v1.7.2

Urban Insight · 2021年1月21日 上架

Urban Insight Promobar is a simple promobar plugin which allows you to customize a dismissable promobar at the top of your WordPress website.

正在使用
10+
评分
暂无
累计下载
4,712
最近更新
2026年10月20日
需要 WordPress 6.3+已测试到 7.1.5PHP 7.4+

截图

Plugin settings
Plugin settings
Frontend view
Frontend view

Urban Insight Promobar makes it easy to add an attractive and functional promobar to the top of your website. This dismissable announcement promobar displays HTML content and Dashicons on a customizable background color. Administrative users can schedule, enable, and reset the promobar display with intuitive plugin settings.

The promobar is built to stay out of the way of your site’s performance and accessibility scores. It renders in normal document flow so it causes no layout shift, loads no CSS or JavaScript on pages where it will not appear, and ships a keyboard accessible dismiss control with text colour chosen for contrast against whatever background you pick.

Features

The Urban Insight Promobar plugin comes with everything you need to create and manage your sitewide announcement:

  • Custom HTML content display
  • WordPress Dashicons font icon selector, with an adjustable icon size
  • Background color picker option, with a live WCAG contrast readout
  • Automatic black or white promobar text, whichever reads better on your background
  • Options to schedule promobar display with start/end date and time settings, including open-ended windows
  • Show the promobar only on selected pages, or on every page except those selected
  • User dismissal tracking with js-cookie
  • Browser cookie expiration (set in days)
  • Dismissal reset setting using roll browser cookie value
  • Localhost development option
  • Keyboard accessible dismiss control with a visible focus indicator
  • Causes no cumulative layout shift, and loads nothing on pages where it will not appear

Filters

Developers can adjust the promobar with the following filters:

  • urbipb_should_display — whether the promobar should render on this request, after the enable, empty content, exclusion and schedule checks have run.
  • urbipb_exclude_posts_pages — the list of page IDs the promobar is excluded from.
  • urbipb_text_color — the black or white text colour chosen for the background.
  • urbipb_announce_content_html — the promobar content markup, passed the icon and HTML content.
  • urbipb_announce_close_button — the dismiss control markup.
  • urbipb_announce_noscript_style — the noscript stylesheet used when JavaScript is unavailable.

Plums

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

导航

说明

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

© 2026 Plums