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

Sticky banner

描述

This plugin makes it easy to display a sticky announcement banner, at the top or bottom of your website. You can customise the colours to suit your site or brand. Preview your banner from the settings page, before you save/update.

螢幕截圖

安裝

From your WordPress dashboard

  1. Visit ‘Plugins > Add New’
  2. Search for ‘Sticky Banner’
  3. Activate ‘Sticky Banner’ from your Plugins page.
  4. Visit ‘Sticky Banner’ in the sidebarner to create a new banner.

From WordPress.org

  1. Download ‘Sticky Banner’.
  2. Upload the ‘hdsb-stickybanner’ directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
  3. Activate ‘Sticky Banner’ from your Plugins page.
  4. Visit ‘Sticky Banner’ in the sidebar to add content and change colours.

常見問題

Will the banner hide my content

The banner automatically detects its own height and applies padding to the top or bottom of the page to make sure no content is hidden.
If you have other fixed elements on your page (like a menu bar or header) that sticks to the top/bottom of the page – you can override default z-index and padding by using CSS to target class hdsb-t-active or hdsb-b-active.

What font does the banner use

The banner font is Arial, which is universal font, available on all devices.

評價

2020年5月10日 1 reply
Works as advertized. Would be great to have a cross to hide the bar, to add CSS to customize the font, the button shape, the text and button colors separately, and the bar height. Pretty cool already !
閱讀全部1個評價

貢獻者及開發者

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

貢獻者

將 Sticky banner 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.1.0

The plugin has been coded from the ground up to be cleaner and make future updates easier.

  • New setting: Cookie expiry days option added to settings
  • New setting: Hide on pages option added (add page IDs with commas)
  • New: Adds an active class to the body for styling (hdsb-t-active or hdsb-t-active)
  • New: Users can now close banner with X on right hand side (adds cookie for 7 days)
  • Update: Button will not show without a URL added to settings

1.0.0

  • Initial Version.