Light Modal Block
Lightweight, customizable modal block for the WordPress block editor.
Not scanned yet
WordPress plugin
2k installs
Install in
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 and the WooCommerce Product Template block
Attribution
The Light Modal block uses a modified version of the Micromodal library.
Written by Joobi from the project's own listing. See the source page
30 Nov 2026
Version 1.11.0 released. Not scanned yet.
1.11.0
- Enhancement: Add
aria-label="Close"to the close button for improved accessibility
1.11.0
- Enhancement: Modals inside the WooCommerce Product Template open the product that was clicked, instead of always showing the first product
- Fix: Close button reliably closes the modal when clicking the icon inside the button
1.9.2
- Fix: Prevent page scrolling when clicking an anchor which triggers opening a modal
1.9.1
- Fix: Modal not opening on some sites due to the script loading after the page was already ready
1.9.0
- Enhancement: When selecting edit modal from the plugin sidebar, automatically open the modal block settings
- Enhancement: Improve performance of
useModals()hook via leveraginggetBlocksByName()
1.8.0
- Fix: Show modal on page load no longer requiring delay input
- Enhancement: Control over autoplaying of videos and audio when a modal opens as well as pausing when it closes
1.7.1
- Fix: Unnecessary block editor scripts being enqueued on frontend
1.7.0
- Enhancement: Improve acessibility of modal triggers for the Button block
1.6.0
- Enhancement: Add event listeners for modal ready, open and close
1.5.0
- Enhancement: Add body class
.lmb-openwhen a modal is currently open on the page - Enhancement: Add ability to set cookie on timed modals when user interacts with content in the modal
- Enhancement: Close icon / close background color controls
- Enhancement: Add ability to change/remove focusable elements when a modal is opened
- Chore: Update block to block version 3
- Chore: Update minimum WordPress version support to 6.6
1.4.0
- Enhancement: Support for modals within a query loop block
1.3.2
- Fix: Unique modal ID not generating when duplicating block
1.3.1
- Fix: When editing a pattern with a modal block, open modal by default
1.3.0
- Enhancement: Add support for drop shadows
1.2.1
- Fix: Modal blocks not showing in sidebar or advanced controls if a nested block
1.2.0
- Enhancement: Add typography style controls
1.1.1
- Fix: Block editor toolbar crash
1.1.0
- Fix: Add backdrop color control
- Enhancement: Set cookie to not display modal again until X minutes have elapsed
- Enhancement: API to programatically open and close modal
1.0.1
- Fix: Update CSS styling
1.0.0
- Initial release
15 Jun 2023Listed on Joobi from WordPress.org.
Follow this listing's changes (Atom feed)