4 min read

Modal Kit 1.0 release notes

The first public release: one block for every kind of modal, with triggers, display rules, styles and starters, all built on the block editor and the browser’s own dialog.

The first public release: one block for every kind of modal, with triggers, display rules, styles and starters, all built on the block editor and the browser’s own dialog.

The Modal block and layouts

  • One block, with core blocks inside: headings, images, buttons, columns, video, anything the editor offers.
  • Nine layouts: centered, corner, bar, full screen, drawer, split, sheet, inline and video.
  • A mobile layout (automatic, bottom sheet or full screen) below a breakpoint you set.
  • Edit the modal on the canvas as it appears on the site, with a backdrop preview.

Triggers

  • Page load with a delay, scroll depth, leaving the page, time on site, inactivity, a URL hash or query, and an element coming into view.
  • On touch screens, leaving the page can mean a fast scroll up.
  • Any link or button opens a modal: #modal-name or ?modal=name, even before scripts load.

Display rules

  • Entire site, only these pages or everywhere except: pages picked by title, paths such as /shop/*, and post types.
  • Once per visit, once every few days or every time, and stop after the visitor clicks a button.
  • At most a set number of times in total; links still open it.
  • Devices, browsers (Chrome, Safari, Firefox, Edge, Opera, Samsung Internet, in-app), start and end dates, hidden for logged-in users, and after a number of page views.
  • Site-wide: how many modals may open by themselves per page, a pause between them, and roles to leave out.

Styles and starters

  • Native (the default), Soft and Editorial follow your theme’s colours, fonts and spacing (theme.json).
  • Three fixed styles with their own look, Fieldnote, Harbor and Night, each with your theme’s primary colour or a custom accent, and your theme’s fonts.
  • Seven starters in a picker, listed alphabetically by category and collection; a starter can bring its own triggers and display rules.
  • A setup wizard that previews every style and sets your defaults.
  • A style picker in Block → Styles: hover or use the arrow keys to preview, with search once there are seven or more styles.
  • Settings → Styles: import and export styles as .json (or .zip with their fonts), duplicate one, and delete one with a style to move its modals to. Text that may be hard to read is pointed out.

Accessibility

  • Focus moves to the heading on open and back to what opened it on close.
  • The page behind is inert; Esc and a click outside close the modal.
  • Close buttons are at least 44px, and reduced motion gets a fade only.
  • Settings → Accessibility holds the site-wide choices; each modal can override them.

Speed, caches and static sites

  • About 11 KB gzipped, printed only on pages that show a modal; triggers and the video player load when used.
  • No cookies: what a visitor has seen stays in their browser’s localStorage.
  • Opening a modal never asks WordPress for anything, so page caches and Simply Static exports keep working; the export includes the on-demand files.
  • Speed plugins are told to leave Modal Kit alone, with nothing to set: SiteGround Speed Optimizer, LiteSpeed Cache, W3 Total Cache, Breeze, Jetpack Boost, 10Web Booster and NitroPack. CDNs keep its scripts on your site.
  • Modals wait while a page is prerendered, and through LiteSpeed’s Guest Mode reload, so a visit counts once.

Tools

  • Export modals (and settings) to a .json file and import them on another site.
  • Reset “already seen” for your browser, and a debug mode that logs why each modal did or didn’t open.
  • Video links can play in a lightbox.
  • A switch to delete everything Modal Kit stored when you uninstall it.

For developers

  • Filters and actions for meta, layouts, button actions, targeting and what the browser receives for each modal.
  • Add-ons can add layouts with their own positions, and hold modals back with a marker inside the modal.
  • Browser events (modal-kit:open, modal-kit:close and more) and a request event to open a modal from your own code.

Updating

Modal Kit updates from Dashboard → Updates like any other plugin. Updates in the Docs covers release channels, pausing and rolling back, and what each plugin needs.

Download it free. What Pro adds is in the Modal Kit Pro 1.0 release notes.

The fixes since 1.0 are in Modal Kit and Modal Kit Pro 1.0.2.