
內容簡介
這是一個可以幫助 WordPress 區塊編輯器創建簡單而堅固模態框的解決方案,主要特色包括:完全可定制、透過 CSS selector 在點擊任何元素時觸發模態框、在特定時間後觸發模態框、自訂模態框寬度、選擇性的關閉按鈕,並且在前端只有 1kb 的大小。
問題與回答:
Q:這個 WordPress 外掛主要是為了什麼而設計的?
A:這個 WordPress 外掛是為了區塊編輯器創建簡單而堅固模態框而設計的。
Q:這個外掛有哪些主要的特色?
A:這個外掛有以下主要的特色:
- 可完全自訂
- 可透過 CSS selector 在點擊任何元素時觸發模態框
- 可在特定時間後觸發模態框
- 可自訂模態框寬度
- 可選擇性的關閉按鈕
- 僅有 1kb 的大小
Q:這個外掛使用了哪個庫?
A:這個外掛使用了 Micromodal 库的修改版本。
外掛標籤
開發者團隊
原文外掛簡介
A simple yet robust solution for creating modals within the WordPress block editor.
🚀 View Demo
Features
Fully customizable using the native block editor style controls
Trigger modal on click for any element via CSS selector
Trigger modal on page load after X milliseconds
Set cookie to not show modal again on page load until X minutes have elapsed
Option for user interaction within modal triggers cookie to be set
Custom modal width
Optional close button
API enabled
Only 2kb gzipped
Accessibility enabled
Use modals within the query loop block
Attribution
The Light Modal block uses a modified version of the Micromodal library.
