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

Callout Boxes

外掛說明

The callout box includes an icon, and the post content. This plugin uses Heroicons and php-heroicons PHP package.

Icons

A callout box includes an icon that describes what’s the purpose of the callout box.

The plugin is using Heroicons so you can go to its website and see what icons are available to use within this plugin.

You can use solid and outline icons.

Types

A callout box can have multiple types:

  • primary
  • success
  • danger
  • warning

By default, the callout box is primary.

Icon Methods

The icon method can be 2 types:

  • solid
  • outline

By default, for shortcodes and Gutenberg the icon method is solid.

Shortcode

For WordPress Classic Editor or even Gutenberg, you can use the shortcode:

[wp-callout icon="check-circle" type="primary" method="solid"]
Welcome to WordPress. This is the post content.
[/wp-callout]

The shortcode supports 3 attributes:

  • icon. The icon to show in the callout box. (Default: check-circle)
  • type Callout box type. (Default: primary)
  • method (Default: solid)

Gutenberg Block

For Gutenberg users, you can use Callout Box block.

Every Gutenberg Callout Box, you can change the icon, type and method using the block properties.

Those properties are the same for the shortcode.

Then, you just type your callout box content inside the Gutenberg block.

Block Presets

When you insert a new Gutenberg Block Callout you can select 1 of the 4 presets installed in the plugin:

  • Information
  • Success
  • Danger
  • Warning

After you select one preset, your callout box will change its background color and icon.

螢幕擷圖

  • screenshot-1: Gutenberg Block.
  • screenshot-2: Callout Boxes.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Callout Boxes〉的開發相關工作。

參與者

將〈Callout Boxes〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

0.3.2

FIX: Callout box not responsive on mobile (#9)

0.3.1

FIX: Custom CSS styles printed in attribute even when those aren’t selected (#8)

0.3.0

FEATURE: Use custom colors for callout boxes. You can change the background, border, icon and text colors.

0.2.0

Introducing information, success, warning and danger presets.

0.1.0

Render callout boxes using shortcodes and Gutenberg blocks.