跳到内容

eFortuneCookie

v1.0.0

ericitwang · 2024年7月6日 上架

A plugin to add fortune cookies to WordPress. Import your favourite fortune cookie sayings and display them in WordPress. You can also customise your …

正在使用
10 以下
评分
暂无
累计下载
1,027
最近更新
2024年7月9日
需要 WordPress 4.0+已测试到 6.5.15PHP 7.4+

贡献者

截图

An opened fortune cookie
An opened fortune cookie
Search for eFortuneCookie
Search for eFortuneCookie
Customise your fortune cookie
Customise your fortune cookie
Check all your sayings
Check all your sayings
Import your sayings
Import your sayings

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″]”.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums