Shortcode: [popup]

Creating Popups Using Shortcodes

This shortcode is mainly used to insert additional content for a page or post, without leaving that page or posts editor.

Using the Shortcode Button

You can use the Popup Maker Shortcode Button to generate your shortcodes. Notice how in the video the shortcode appears elegantly in the content editor as opposed to messy code in the text editor:

Using the Shortcode in an Example

List of Arguments for the Popup Shortcode

- popup id (required): Unique name for the popup, no spaces (i.e. my-popup)
- title: The title of the popup, will appear on the front end. Accepts html, among other things.
- theme_id: The ID of your desired theme. Find the ID just like you would for any other WP post, except look under the Popup Themes screen.
- overlay_disabled: ‘1’ yes, ‘0’ no
- size: nano, micro, tiny, small, medium, large, xlarge, auto, or custom
- width: You will only use this if you choose ‘custom’ size
- width_unit: px, %, EM, REM
- height: You will only use this if you choose ‘custom’ size
- height_unit: px, %, EM, REM
- location: left top, center top, right top, left center, center center, right center, left bottom, center bottom, or right bottom
- position_top: whole number, will be rendered in pixels. Default is 100.
- position_bottom: whole number, will be rendered in pixels.
- position_left: whole number, will be rendered in pixels.
- position_right: whole number, will be rendered in pixels.
- animation_type: none, slide, fade, fadeAndSlide, grow, or growAndSlide
- animation_speed: whole number, rendered in milliseconds
- animation_origin: top, left, bottom, right, left top, center top, right top, left center, center center, right center, left bottom, center bottom, or right bottom
- overlay_click: ‘0’ for no close on overlay click, ‘1’ to close popup on overlay click<br>

Still need help? Contact Us Contact Us