Plugin Shortcodes

Version: 2.6

Plugin Shortcodes

Add {popup …} …content… {/popup} shortcodes in articles, modules, or components. You can popup text, images, iframes, and YouTube/Vimeo/Google Maps URLs from text links, pill buttons, or image triggers.

Place block-level shortcodes outside <p> tags when the popup body contains block elements to avoid inline content showing on the page.

General Options

OptionExampleDescription
texttext="Click Here"Link label for text or button triggers.
popwidthpopwidth="720px"Popup width. Uses plugin default when omitted (Modern: 860px; Classic: 500px).
popheightpopheight="480px"Popup max height. Uses plugin default when omitted.
urlurl="https://www.youtube.com/watch?v=VIDEO_ID"External URL for iframe/media popups (YouTube, Vimeo, Google Maps).
autoplayautoplay="1"Video autoplay for media URL popups (0 or 1).
classclass="ibtn ibtn-blue"CSS classes. Use ibtn ibtn-* for pill buttons or imgmargin-10 for image spacing.
iconicon="fa-plus"Font Awesome icon before trigger text or on overlays.

Image & Overlay Options

OptionExampleDescription
imageimage="images/corporate/small/1.jpg"Image path for an image-based trigger (local or full URL).
imgwidth / imgheightimgwidth="320px"Thumbnail dimensions for the image trigger.
altalt="Image description"Alt text for SEO and accessibility.
overlaytextoverlaytext="View details"Caption text on the image overlay.
overlayoverlay="true"Keep overlay visible without hover.
overlaybgcoloroverlaybgcolor="#333333"Overlay background colour.
overlaytextcoloroverlaytextcolor="#ffffff"Overlay text colour (default #ffffff).
overlayopacityoverlayopacity="0.7"Overlay opacity (0.1 to 1).
overlaypaddingoverlaypadding="10px"Padding around overlay text and icon.
overlayfontsizeoverlayfontsize="18px"Overlay text font size.
overlaytextborderoverlaytextborder="2"Border thickness around overlay text (default 0).

Predefined Button Classes (ibtn)

TypeClass Name
Red Buttonibtn ibtn-red
Orange Buttonibtn ibtn-orange
Blue Buttonibtn ibtn-blue
Grey Buttonibtn ibtn-grey
Green Buttonibtn ibtn-green
Yellow Buttonibtn ibtn-yellow
Violet Buttonibtn ibtn-violet
Dark Blue Buttonibtn ibtn-dark-blue

Helper Shortcode

{clearfix} — clears floats after image triggers or floated content inside a popup.

Examples

Simple Text Popup
{popup text="Simple Text Popup" popwidth="500px" popheight="300px"} <img style="float:left;margin-right:5px;" src="/images/corporate/small/1.jpg"/>Lorem ipsum dolor sit amet.{clearfix}{/popup}
Icon + Text Popup
{popup text="Open details" icon="fa-plus" popwidth="720px" popheight="480px"}Your content here{clearfix}{/popup}
Image with Overlay
{popup image="images/photo.jpg" overlaytext="View Image" icon="fa-eye" overlaybgcolor="#000" overlaytextcolor="#fff" overlayopacity="0.8" imgwidth="320px" imgheight="240px"}Your content here{clearfix}{/popup}
YouTube Video Popup
{popup url="https://www.youtube.com/watch?v=VIDEO_ID" text="Watch Video" icon="fa-play" popwidth="853px" popheight="480px" autoplay="1"}{/popup}
Button Style Popup
{popup class="ibtn ibtn-yellow" icon="fa-comment" text="Click Me" popwidth="600px" popheight="300px"}Your content here{clearfix}{/popup}

Tip: For more examples, use the Shortcode Examples tab in plugin configuration.