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.
  • 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.
  • Uses create-guton-block for easy config.

Donations

If you like the plugin, consider a donation to support further development. Click here

Screenshots

  • Sample modal window.
  • Modal Guten Block in editor.

Blocks

This plugin provides 1 block.

  • Modal Guten Block

Installation

From your WordPress dashboard

  1. Visit Plugins > Add New
  2. Search for « Modal Block »
  3. Install the « Modal Block » plugin
  4. Activate « Modal Block » from your Plugins page
  5. Insert Block on your Gutenberg Editor and select « Modal Block » which is located in Widgets.

Reviews

septembre 7, 2021
Hey just wanted to say great plugin! I've been looking for a modal block for a while now, and this is fairly close to perfect. There are only two major issues that i can see. Dependency on Jquery. Its not ADA compliant. Jquery - Most of my projects don't use Jquery any more and I'd hazard to say this is becoming true for more and more front end work. I cant justify loading an entire library for 1 modal. ADA compliance - Its best practice to ensure all components are accessible and work at least toward basic ADA compliance. For modals this usually means setting focus and focus trapping within the context of the modal as well as announcing the modal to screen readers. https://uxdesign.cc/how-to-trap-focus-inside-modal-to-make-it-ada-compliant-6a50f9a70700

TOP

mai 20, 2020
Thank you! it work very well Cheers 😉
mars 4, 2020
Saved me a lot of time. Thank you. light-weight and easy to use for my clients. Its genius that you can edit the modal content with Gutenberg and add other blocks to it. Styling could be improved though.
décembre 6, 2019
Exactly what i was looking for. easy to use. Only there isn't a close button for the popup form.
Read all 6 reviews

Contributors & Developers

“Modal Guten Block” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Modal Guten Block” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

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