[WordPress] 外掛分享: Announcement Banner

首頁外掛目錄 › Announcement Banner
100+
安裝啟用
★★★☆☆
3/5 分(2 則評價)
1356 天前
最後更新
問題解決
WordPress 4.7+ PHP 7.0+ v1.2.0 上架:2020-05-14

內容簡介

Announcement Banner 外掛可在網站的頂部或底部顯示通知橫幅。設置頁面允許使用者設置橫幅的固定或相對位置,選擇背景和文字顏色,使文字連結化,開關橫幅,添加關閉按鈕,甚至添加自定義 CSS。

Announcement Banner 功能

選擇橫幅的背景色和文字顏色。
在頁面頂部或底部以固定或相對位置顯示橫幅。
為橫幅添加可選的「關閉」按鈕。
關閉按鈕持續時間設置,使橫幅關閉一段自定義的天數。
設置固定橫幅的高度(以像素為單位)。
自定義信息,包括 HTML 標記。
將整個橫幅文字連結化(可選)。
開關橫幅。
添加自定義 CSS。

外掛設置

顯示 Announcement Banner - 根據需要打開(Yes)或關閉(No)Announcement Banner。安裝時默認關閉橫幅。
Announcement Banner 位置 - 固定設置會將橫幅固定在屏幕頂部。即使滾動,它也會固定在頂部。相對位置會保持橫幅在其正常位置並隨著頁面滾動。
Announcement Banner 放置 - 默認 Announcement Banner 放置在頂部。
背景色和文字顏色 - 這個字段將接受十六進制代碼(例如:#000000)或支持的顏色名稱(例如:黑色)。默認背景顏色是白色(#FFF),默認文字顏色是深灰色(#333)。
橫幅高度 - 在橫幅上添加固定高度(以像素為單位)。
上邊距 - 在顯示 Announcement Banner 時,在 body 元素上添加上邊距。當橫幅設置為 position: fixed 時,這可能很有用。
關閉按鈕 - 单击關閉按鈕將隱藏橫幅。按鈕將出現在橫幅的右側。
關閉按鈕持續時間 - 設置使用者按下關閉按鈕後幾天再次顯示橫幅。
Announcement Banner 信息 - 輸入您的公告文字。允許使用 HTML。
使訊息成為連結?- 使公告橫幅消息的完整文本成為連結。
連結 URL - 訊息連結的 URL。僅當使訊息成為連結設置為 Yes 時才適用。
自定義 CSS - 添加自己的自定義 CSS。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Announcement Banner」→ 直接安裝(推薦)

原文外掛簡介

The Announcement Banner plugin displays a notification banner at the top or bottom of your website. The settings page allows the user to set the banner to either fixed or relative position, choose background and text color, make the text linkable, toggle the banner on and off, add a close button, and even add custom CSS.
Announcement Banner Features

Choose the background color and text color of the announcement banner.
Display the banner at the top or bottom of the page in fixed or relative position.
Add an optional ‘Close’ button to the banner.
Close Button Duration setting that keeps the banner closed for a custom number of days.
Set a fixed banner height in pixels.
Custom message including HTML tags.
Link the entire banner text (optional)
Toggle the banner on and off.
Add your own custom CSS.

Plugin Settings

Show Announcement Banner – Turn the Announcement Banner on (Yes) and off (No) as needed. The banner will be off by default when installed.
Announcement Banner Position -The fixed setting will pin the banner to the top of the screen. It will stay pinned to the top even when scrolling. Relative will keep the banner in its normal position and it will scroll with the page.
Announcement Banner Placement – The default Announcement Banner placement is at the top.
Background Color and Text Color – This field will accept Hex code (Ex: #000000) or supported color name (Ex: black). Default background color is white. (#FFF) Default text color is dark gray. (#333)
Banner Height – Add a fixed height in pixels to the banner.
Top Padding – Add top padding the body element when the Announcement Banner is displayed. This can be useful when the banner is set to position: fixed.
Close Button – The close button will hide the banner on click. The button will appear on the right side of the banner.
Close Button Duration – Set the amount of days the banner until the banner reappears after the user clicks the close button.
Announcement Banner Message – Enter your text for your announcement. HTML is allowed.
Make Message a Link? – Make the full text of the announcement banner message a link.
Link URL – URL for the message link. This will only work if Make Message a Link setting is set to Yes.
Custom CSS – Add your own custom CSS.

延伸相關外掛

文章
Filter
Mastodon