该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Callout

描述

The Callout Block plugin registers a WordPress block that allows you to add a styled box for featured content to your WordPress block editor.

Key Features

  • Includes 200+ icons powered by Heroicons
  • Use custom icons (loaded from SVG string or link)
  • Design your callout block using inner blocks
  • Transform your callout block to a reusable block
  • Compatible with the Site Editor

Development

屏幕截图

  • Callout with an icon from the library.
  • Callout with a custom icon (The icon was inserted from a link).
  • Callout with more styling. The icon is bigger, the block has a border radius and a left border. The paragraph and button were moved by modifying their custom attributes.
  • Icon Library.
  • Custom SVG (SVG string and preview). You can insert SVG string or from a link.

区块

该插件提供了1个区块.

  • Callout Insert a styled box for featured content.

安装

This section describes how to install the plugin and get it working.

  1. Upload the plugin files to the /wp-content/plugins/callout-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the “Plugins” screen in WordPress.
  3. Inside the Block Editor, search the “Callout” block and insert it.

常见问题

Can I use custom icons?

Yes. Open the modal with the icons, go to the “Custom SVG” tab and insert your SVG string or a link (the extension must end with .svg). After that, click on “Insert” button and the icon will be inserted and can be styled.

Can be this block reusable?

Yes. Transform your callout box to a reusable block as usual. Then, if you want to use it later in a post or page, insert it from the reusable blocks section.

If you want to edit the content for the reusable block, you have to transform your block to a regular block. If you don’t do that, the callout box will be updated across your website (unless if that’s what you want it).

评价

2024 年 1 月 27 日
First hit on Google search when I tried 'wordpress block editor callout panel'. Installation instructions were clear and straightforward, even to someone like me who's a non-developer and haven't uploaded a plugin before. Incredibly customisable with colours and icons. The GitHub repo is also open, for transparency. Thank you very much for developing this!
阅读所有1条评价

贡献者及开发者

“Callout” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Callout”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.1.0

This version is only compatible with WP 6.2 or higher. If you are using WP 6.1, please use the previous version.

Also, attempt to recovery the block if it’s broken after update.

  • FIX: Flex property missing after update WP 6.2 (#5)

1.0.0

  • Initial release