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

Modal Builder Block

描述

This small plugin allows you to create a modal / popup / lightbox with WordPress’ default Block editor (Gutenberg). The plugin provides you with a block that can be used for the modal’s trigger and the modal’s window contents. Anything you can do with the block editor, you can use for the modal trigger or the contents.

  • Multiple trigger methods. Use the power of the Block Editor to create your trigger (buttons, images, covers, and more).
  • Flexible modal content. Similarly to the trigger, use the Block Editor to define the content inside your modal content.
  • Supports multiple modals on the same page.
  • More to come.

To create a modal, simply use the Modal Builder block to create a trigger. Use another Modal Builder block to create the content (make sure you select the appropriate content type under the modal settings). On both instances, set the “Content ID” to whatever you want as long as both instances match. You are set.

Donations

If you like the plugin, consider leaving a donation to support further development of the plugin. Click here. If you would like custom solutions or the like, please visit HTR.Design.

螢幕截圖

  • Modal Builder block in action. Adding a trigger.
  • Adding a button block inside the trigger block.
  • Add another Builder block and change “content type” to content. Add your modal content (like an image).

Blocks

This plugin provides 1 block.

  • Modal Builder Block Build a modal with the power of WordPress' block editor. Anything you can do with the editor works inside of the modal content window or the modal trigger.

常見問題

Will there be more options for customization?

Certainly. Provided there is support and interest, more features will be added as often as we are able to!

Can there be multiple triggers for one Modal?

Yes! You can create as many triggers with different inner blocks as you like.

評價

閱讀全部1個評價

貢獻者及開發者

“Modal Builder Block” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Modal Builder Block 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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