前言介紹
- 這款 WordPress 外掛「PCF Halloween Countdown」是 2015-09-13 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2015-10-06,距離現在已有 3498 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
pcfdev |
外掛標籤
o | hwn | pcf | date | down | jack | count | ghost | ghosts | lantern | pumpkin | calendar | countdown | halloween |
內容簡介
基本說明
此外掛安裝後即可立即使用,您可以在任何地方放置簡短碼。
使用簡短碼 [pcf_hwn_countdown] 輸出倒數計時器。
預設倒數計時輸出單位為天 (例如「距離萬聖節還有 105 天!」)。
更改輸出類型
您可以為簡短碼新增一個「類型 (type)」屬性,如下:
[pcf_hwn_countdown type="days|weeks|sleeps"]
這樣您就可以變更輸出類型。
有三種選擇:
天數
星期
距離日期之前幾天
如果您未指定「類型」屬性或指定無效類型,它將預設為「天數(days)」。
例如:
[pcf_hwn_countdown type="weeks"]
輸出為:
距離萬聖節還有「X 星期 Y 天」。
設計輸出樣式
樣式設計是比較高級的設定,它需要使用自訂 CSS。
可為簡短碼新增一個「id」屬性,然後使用 CSS 樣式來設計輸出樣式。
例如:
[pcf_hwn_countdown id="my-id"]
HTML 中「id」屬性的輸出如下:
...
然後您可以透過 外觀 > 編輯器 來新增自訂 CSS,如果您的佈景主題支援自訂 CSS,您也可以透過佈景選項來新增自訂 CSS。如果編輯器中有自訂 CSS 檔案,建議使用該檔案來設定自訂樣式。
以下是一些自訂樣式的範例:
#my-id{ color: red; font-size: 16px; text-decoration: underline; }
這將設置輸出為紅色、顯示底線,並具有 16px 的字體大小。
原文外掛簡介
Basic Instructions
This plugin works out-of-the-box, so once the plugin is installed, you can place a shortcode wherever you want.
Use the shortcode [pcf_hwn_countdown] to output the countdown.
The countdown will output in days by default (e.g ‘105 days until Halloween!’).
Changing output type
The shortcode can be given a ‘type’ attribute, like so:
[pcf_hwn_countdown type="days|weeks|sleeps"]
This enables you to change the output type.
There are 3 types to choose from:
Days
Weeks
Sleeps
If you do not specify the type attribute, or specify an invalid type, it will default to ‘days’.
Example:
[pcf_hwn_countdown type="weeks"]
will output as
It's `x` weeks and `y` days until Halloween!
Styling the output
Styling the output is an advanced setting, that involves writing custom CSS.
The shortcode can be given an ‘id’ attribute, which can then be used to style the output using CSS.
For example,
[pcf_hwn_countdown id="my-id"]
would output in HTML as
...
You can then add custom CSS through Appearance > Editor. If your theme supports custom CSS, you may be able to add your styles in Theme Options. If there is a custom css file in Editor, it is advised to use that for custom styles.
Here is an example of some custom styles:
#my-id{ color: red; font-size: 16px; text-decoration: underline; }
This will set the output to be red, underlined, and to have a font size of 16px.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「PCF Halloween Countdown」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。