內容簡介
總結: eFortuneCookie是一款WordPress外掛程式,可以將幸運餅乾加入網站中,匯入喜愛的幸運餅乾箴言並在WordPress中顯示,同時可以自訂幸運餅乾設計。
1. 如何在WordPress中使用eFortuneCookie外掛?
- 安裝外掛後,可匯入喜愛的幸運餅乾箴言。
- 在WordPress網站中新增幸運餅乾,可透過Gutenberg區塊編輯器搜尋「eFortuneCookie」或使用簡碼。
- 新增幸運餅乾後,點擊即可查看箴言。
- 可自訂幸運餅乾的大小、字型大小和顏色。
2. 如何使用簡碼來新增幸運餅乾?
- 使用簡碼「[efortunecookie]」即可新增幸運餅乾,可加入可選參數。
- 參數包括寬度、高度、字型大小和字型顏色,若未設定,將使用預設值。
- 例如:完整簡碼為「[efortunecookie width="200px" height="180px" font-size="12px" font-color="%23000080"]」。
外掛標籤
開發者團隊
原文外掛簡介
A plugin to add fortune cookies to WordPress. Import your favourite fortune cookie sayings and display them in WordPress. You can also customise your fortune cookie design.
Description | How to use it
With eFortuneCookie you can have fortune cookie moments when people visit your website.
* After installing the plugin, you can import your favourite sayings.
* To add a fortune cookie to your WordPress site, you can select it from the Gutenberg Block Editor by searching for “eFortuneCookie” or using a shortcode (see the Shortcode section for more details).
* After adding a fortune cookie, you can click on it to see the saying.
* The size of the fortune cookie and the font size and colour can be configured.
You can find more information about how to use it: here.
Shortcode
You can add a fortune cookie using shortcode with the code “[efortunecookie]”. It accepts optional parameters. If the parameters are not set, the default values will be used. Here are the parameters:
* width: the width of the fortune cookie image, such as “200px”.
* height: the width of the fortune cookie image, such as “200px”.
* font-size: the font size of the fortune cookie saying, such as “12px”.
* font-color: the font color of the fortune cookie saying, such as “%23000080”. This is actually the hexadecimal color “#000080”, but you need to replace “#” with “%23”.
To give a complete example, the full shortcode is “[efortunecookie width=”200px” height=”180px” font-size=”12px” font-color=”%23000080″]”.
