Plugin info

Total downloads: 10,648
Active installs: 1,000
Total reviews: 11
Average rating: 5
Support threads opened: 4
Support threads resolved: 2 (50%)
Available in: 1 language(s)
Contributors: 4
Last updated: 11/19/2025 (42 days ago)
Added to WordPress: 6/15/2023 (2 years old)
Minimum WordPress version: 6.6
Tested up to WordPress version: 6.9
Minimum PHP version: 7.0

Maintenance & Compatibility

Maintenance score

Actively maintained • Last updated 42 days ago • Support resolved 50% • 11 reviews

63/100

Is Light Modal Block abandoned?

Likely maintained (last update 42 days ago).

Compatibility

Requires WordPress: 6.6
Tested up to: 6.9
Requires PHP: 7.0

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Lightbox & Modal Popup WordPress Plugin – FooBox
Rating 3.9/5 (91 reviews)Active installs 100,000
Modal Window – create popup modal window
Rating 3.8/5 (35 reviews)Active installs 10,000
Themify Popup
Rating 4.9/5 (11 reviews)Active installs 9,000
Modal Builder Block
Rating 5.0/5 (1 reviews)Active installs 700
AI Popup
Rating 4.6/5 (21 reviews)Active installs 500
Popup Modal
Rating 4.5/5 (2 reviews)Active installs 200

Description

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.

Installation

  1. Upload the plugin files to the /wp-content/plugins/light-modal-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress

Frequently Asked Questions

How can I programatically open or close a modal?

Each modal is given a unique ID, which can be found inside the inspector controls of the block settings. It will look something like: Mk6I8L4haJB

To open a modal:

window.lightModalBlocks.get('modal-id-here').showModal(true);

To close a modal:

window.lightModalBlocks.get('modal-id-here').closeModal();

How can I prevent focusing on the first focusable element when the modal opens?

Paste the following code in your child themes functions.php file or similar:

/**
* Prevents the light modal block from focusing on a specific element when it opens.
*
* @return void
*/
add_action(
    'wp_enqueue_scripts',
    function () {
        wp_add_inline_script(
            'cloudcatch-light-modal-block-view-script',
            'window.lmbFocusableElements = "";',
            'before'
        );
    }
);

How can I prevent scrolling when a modal is open?

The class lmb-open is added to the <body> of the page when a modal is open. You can use the following CSS to prevent scrolling

.lmb-open {
    overflow: hidden;
}

Review feed

No reviews available

Screenshots

  1. Block editor modal settings

    Block editor modal settings

  2. Show Modal block control enabled under the Advanced panel for various blocks

    Show Modal block control enabled under the Advanced panel for various blocks

  3. Native block styling enabled for modals

    Native block styling enabled for modals

  4. Custom panel reveals all modals enabled on page

    Custom panel reveals all modals enabled on page

  5. Modal in list view

    Modal in list view

Changelog

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-open when 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