WPFront Notification Bar

描述

Want to display a notification about a promotion or a news? WPFront Notification Bar plugin lets you do that easily.

Features

  • Display a message with a button (optional).
  • Processes shortcodes.
  • Button will open a URL or execute JavaScript.
  • Position the bar on top or bottom.
  • Can be fixed at position (Sticky Bar).
  • Display on Scroll option.
  • Set any height you want.
  • Set the number of seconds before the bar appears.
  • Display a close button for the visitor.
  • Set the number of seconds before auto close.
  • Colors are fully customizable.
  • Display a Reopen Button.
  • Select the pages/posts you want to display the notification.
  • Select the user roles you want to display the notification.
  • Set Start and End dates.
  • Hide in Small Devices.

Visit WPFront Notification Bar Troubleshooting page for troubleshooting steps.

Visit WPFront Notification Bar Settings page for detailed option descriptions.

螢幕截圖

  • Settings page.

安裝

  1. Click Plugins/Add New from the WordPress admin panel
  2. Search for “WPFront Notification Bar” and install

-or-

  1. Download the .zip package
  2. Unzip into the subdirectory ‘wpfront-notification-bar’ within your local WordPress plugins directory
  3. Refresh plugin page and activate plugin
  4. Configure plugin using settings link under plugin name or by going to WPFront/Notification Bar

常見問題

WPFront Notification Bar and GDPR compliance?

This plugin doesn’t collect any personal information. For more information please visit GDPR compliance.

I don’t want the plugin to be displayed on “wp-admin”, what should I do?

Notification bar doesn’t display on the wp-admin pages, except on the notification bar settings page. On the settings page it acts as a preview so that you can see the changes you make.

How do I stop the bar from displaying for logged in users?

The new version(1.3) allows you to filter the bar based on user roles. In this case you need to select the “Guest users” option.

評價

2021年2月22日
This is a great, simple, tool, with many options and creates visually appealing and non-obtrusive bars. The one single downfall right now is that it can only produce one bar at a time. I would pay for more.
2021年1月24日
Works great in tandem with other sticky menu plugins and is perfect for what's needed e.g. call to action or html codes for a phone contact. Thank you!
2020年9月14日
I am pleased with how easy it was to install and configure. Many more options than I thought. Great plugin.
閱讀全部117個評價

貢獻者及開發者

“WPFront Notification Bar” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

WPFront Notification Bar 外掛目前已有 4 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 WPFront Notification Bar 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

2.2.0

  • You can now change the capability checked by Notification Bar.
  • Use WPFRONT_NOTIFICATION_BAR_EDIT_CAPABILITY constant to set your custom capability or use wpfront_notification_bar_edit_capability filter.
  • You can now enable/disable notification bar based on any condition using wpfront_notification_bar_enabled filter.

2.1.0

  • More XSS fixes. Please read this link before upgrading.
  • Use WPFRONT_NOTIFICATION_BAR_UNFILTERED_HTML constant to get v1.x behavior on message & button text.
  • Add define(‘WPFRONT_NOTIFICATION_BAR_UNFILTERED_HTML’, true); to your wp-config.php to disable message sanitization.
  • Another way is to use wpfront_notification_bar_message_allow_unfiltered_html and wpfront_notification_bar_button_text_allow_unfiltered_html filters.
  • WPML compatibility fix. Use WPFRONT_NOTIFICATION_BAR_LANG_DOMAIN constant to change language domain.

2.0.0

  • Breaking change added. Please read this link before upgrading.
  • Breaking change: Message text no longer allow script tags.
  • If you have script tags in your message text, use ‘wpfront_notification_bar_message’ filter to set your message.
  • This change is needed as per ‘WordPress Plugin Review Team’.
  • More XSS fixes.

1.9.2

  • XSS fix on the settings page.

1.9.1

  • Compatibility fix.

1.9.0

  • Reopen button image is now configurable.
  • Add dynamic CSS through URL.
  • Compatibility fixes.
  • Bug fixes.
  • PHP 8.0 fixes.
  • SiteGround conflict fix.

1.8.1

  • Description correction.

1.8

  • Preview mode.
  • Debug mode.
  • Hide in small devices and windows.
  • Change cookie names.
  • Edit include/exclude post IDs manually.
  • Edit colors manually.
  • More rel attributes. Thanks to jetxpert.
  • Accessibility and compatibility fixes.
  • Filters ‘wpfront_notification_bar_message’ and ‘wpfront_notification_bar_button_text’ added.
  • Bug fixes.

1.7.1

  • Processes shortcode in button text.
  • Notification bar menu is now under ‘Settings’ menu.
  • PHP 7.2 compatibility fixes.
  • Bug fixes.

1.7

  • Start and End times.

1.6

  • Processes shortcodes.
  • Nofollow link option.

1.5.2

  • WP eMember integration.

1.4.2

  • Bug fixes.
  • Serbo-Croatian translation. Thanks to Borisa Djuraskovic.

1.4.1

  • Bug fixes.
  • Hungarian translation. Thanks to Botfai Tibor.

1.4

  • Display on Scroll option added.
  • Date filters added.

1.3

  • User roles filter added.
  • New menu structure.

1.2.1

  • Fixed an issue with mod_security.
  • German language added. Thanks to Anders Lind.

1.2

  • Keep closed for days.
  • Change color of close button.
  • Custom CSS option added.

1.1

  • Filter pages option added.
  • Reopen button added.
  • Keep closed option added.
  • Position offset added.
  • WordPress 3.8 ready.

1.0.1

  • A couple of bug fixes.

1.0

  • Initial release