Modal Guten Block
Modal Guten Block
Description
This project provides a modal / popup block for the WordPress Gutenberg editor.
- Multiple methods for triggering modal including button, text link, image link, external class, and page load.
- User definable modal content using Gutenberg blocks, for example, image, paragraph etc.
- Support for multiple modal window sizes.
- Modal window transitions for fade, left, right, up down.
- Manual trigger modal initialization by calling bodModal.initModal()
- Custom events for before open, after open, before close, after close so custom code can be used.
- Lots of customizable options including Trigger Button Label, Button Color, Trigger Text, Trigger Text Size, Trigger Image, Trigger Class, Modal Delay, Trigger Element Alignment, Overlay Background Color, Title Text Size, Title Font Color, Title Background Color, Title Padding, Border Radius.
- Supports multiple modals on the same page.
- ADA compliant.
- Modal to modal links.
- Multiple ways to close the modal.
- Escape key
- Close button ‘X’ in the top right of the screen.
- Close button ‘X’ in the modal title.
- Close button at the bottom on the modal content.
- Uses create-guton-block for easy config.
Donations
If you like the plugin, consider a donation to support further development. Click here
Installation
From your WordPress dashboard
- Visit Plugins > Add New
- Search for “Modal Block”
- Install the “Modal Block” plugin
- Activate “Modal Block” from your Plugins page
- Insert Block on your Gutenberg Editor and select “Modal Block” which is located in Widgets.
Reviews
Bump to WP 6.8 for Wordfence
By kelter on October 3, 2025
I like this plugin. I've had zero problems. It does it's job and so far has just stayed out of the way. Thank you.
I wish Wordfence wasn't so harsh to plugins like this... I got this alert:
Medium Severity Problems:
* The Plugin "Modal Guten Block" appears to be abandoned (updated October 3, 2023, tested to WP 6.3.7).
Maybe this could have a version bump just so it's "compatible" with WP 6.7 or 6.8? Then Wordfence would yell less often.
"Simple" and efficient plugin
By kldro on January 30, 2025
Thank you for this "simple" and efficient plugin. It does exactly what it promises without adding tons of unnecessary features.
Great Work, solid Standalone Popup Plugin
By SPiNNdevs on October 10, 2024
Hello, thanks for the work. It's not easy, to find good standalone Plugins these days. Two Things we would love to see are:
- Better design in the Backend editor, like providing a wrapper for all elements which are responsible for one Popup Block. Adding padding to the title input. Consider a custom background, because titles are not readable, when the Popup Block is based on a group with a dark background.
- Changing the preview background color, to the one, selected in the options.
- And using native Gutenberg wordpress/elements for options/inputs would really smoothen the experience of an editor and would make this plugin feel much more native
Thanks a lot
By chrioll on November 29, 2023
Simple to use and works perfect for me 😉
Love that this is a separate plugin and not part of a collection of blocks
By Johan van der Wijk (vanderwijk) on November 21, 2023
It does what it is supposed to do, easily configurable and I love that this is a separate plugin and not part of a collection of blocks. It keeps WordPress nice and lean.
It would be perfect if the color picker would use the regular Gutenberg color palette chooser 🙂
Simply Wonderful
By polina92 on November 10, 2023
Extremely versatile, works perfect, no issue in several months of use. And honestly, for me, nothing is missing.
I even use it for click something / reveal result. For fun or educational purposes.
Congratulations to the author, it's much better than very good.
More Control
By hamdeenmoney on October 24, 2023
Can i control for showing modal in specific pages in my website automaticly?
Very good
By classikd on July 13, 2023
Thank you,
Very nice plugin
So, easy Popup-Plugins should be!
By Anonymous User (anonymized_20115841) on February 26, 2023
Best PopUp - Plugin! Easy to use! Please write an PopUp - Plugin in this way! Maybe with Exit Intent - Functionality
Beautiful Plugin
By Vondelphia.com (vondelphia) on January 24, 2023
I think everything is almost perfect, it would be great if "everything was a little more clean and polished". Silly things like:
- add hover color change when focusing edit fields (hard to tell how big the field is) -- for example the "block-editor-plain-text" input field should have more padding, square matching border radius and better font matching size
- Missing option to "disable transition" visual effect
Changelog
2.1
- Transition effects (fade, left, right, up, down) and ‘Custom Events’ for before modal open, after open, before close, after close
- Manual trigger modal initialization by calling bodModal.initModal()
2.0
- Modal background images. Separate options into Trigger, Modal, Title and Content panels. Title close X ability to define size. Trigger based on URL text.
1.5
- modal to modal links, text align title, title close button
1.4.3
- Option to disable close modal on Escape key press.
1.4.2
- Fixed issue where clicking on nested content in edit mode resulted in modal edit content box closing.
- When modal opened focus on first element but do not scroll to it. Stops modal opening at bottom.
1.4.1
- Fix for when we trigger on image and image is smaller than medium size. In this case we default in the full size image.
1.4
- Make ADA compliant including using button instead of span, setting / returning focus and focus trapping.
- Add custom class to dialog when modal opens.
- Add toggle option to disable close on overlay click.
1.3
- Optional display only once for timer based modals. Modal Id links timer modals on different pages to say they are the same. Also ability to say how long before modal is shown again.
1.2
- Change icon to use SVG – use alt tag from trigger image – optional close btn in modal
1.1
- Update for deprecated wp.editor (changed to wp.blockEditor) and core/editor (changed to core/block-editor).
1.0.0 (8/19/2019)
- First release

