Modal Window

A lightweight WordPress plugin that adds a shortcode to open content in a Bootstrap 5 modal window. Version 1.3.1.

Inline modal

[mf_modal label="Open modal" title="My Title"]
Your modal content here.
[/mf_modal]

Iframe modal

[mf_modal_iframe label="Open page" title="Page Title" url="https://example.com"]

Shortcode attributes

AttributeDefaultDescription
labelOpenText shown on the trigger button
title(empty)Optional modal header title
button_classbtn btn-linkCSS class for the trigger (plain link by default)
close_classmf-modal-closeCSS class for the close button (plain × by default)
modal_widthmodal-lgBootstrap modal size: modal-sm, modal-lg, modal-xl
url(empty)URL to load in iframe (mf_modal_iframe only)

Download

Download MF Modal v1.3.1

Source code: github.com/umlouco/mfmodalwindow