這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Site Announcements

描述

Site Announcements allows you to broadcast site-wide messages to your visitors, as well as set custom parameters for the messages,
such as the background and text color, and how long a user-hidden announcement should be hidden from users.

By default, announcements will open in a slide-down modal (showing the announcement content). Alternatively, each announcement can be configured to point to an internal or external URL. Announcements with no URL and no content will simply display user-selected text, which can be handy for broadcasting things like coupon codes or important messages to users.

Plays well with the WordPress Admin Toolbar and is mobile-friendly. Has been tested with 100+ WordPress themes and should work well on all themes. If you have theme compatibility issues, please post a support thread or contact me.

The plugin’s font sizes and families are inherited from the theme. If you wish to make adjustments to the announcement bar’s font sizes or types you will need to add custom CSS to override your theme’s styles.

Site Announcements uses animate.css for the modal transitions and JSCookie for setting a cookie if a user hides a modal.

螢幕截圖

  • Shows a sample closable announcement with a red-background and white text.
  • Shows the announcement creation panel, which lets you set a custom background, text color and other options.
  • Shows the slide-down modal displaying the announcement content if no URL is specified.

安裝

  1. Upload site-announcements to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題

If a User Hides a Specific Announcement, Will Other Announcements Be Hidden as Well?

No, each announcement is hidden based on its ID specifically.

評價

2020年3月20日
Can't show multiple announcements. Closing the newest active announcement should show the next active one behind it or should give the option to display them stacked.
2020年1月4日
Works perfectly on version 5.3.2. Easy to install and customize. Great job!
閱讀全部4個評價

貢獻者及開發者

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

貢獻者

將 Site Announcements 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0.4

  • Fixes color-picker issue

1.0.3

  • Fixes custom text color issue when content is empty

1.0.2

  • Prevent script enqueue if there are no announcements
  • Removes erroneous admin output

1.0.1

  • Update for plugin assets

1.0.0

  • Initial release