WP Popup Plugin (CMP) - Shortcodes


Shortcodes

Back to User Guide

TIP: What Are Shortcodes

Shortcodes add dynamic content to your site via a small piece of code.

Learn more: Shortcodes - How To Use | Finding ID of Post/Page/Other Content


Popup Countdown Shortcode

This WP Popup Plugin shortcode allows to display a countdown in a popup. Note: this shortcode was introduced in version 1.6.0.

Shortcode: [cmpop_countdown]

This shortcode displays the countdown and it has a few parameters.

Parameters

  • time - Here you need to set the date and time value. It can be set in 2 formats: as a timestamp (if the parameter strtotime="0"), or in textual format (if the parameter strtotime="1").
  • strtotime - Controls how the time is interpreted. The default value is "0". Learn more about it.
  • inverse - Allows to choose one of 2 styles. Can be set "0" or "1". The default value is "0".

Example #1:

Let's use the timestamp format of time. The shortcode will be:

[cmpop_countdown time="1670788800" strtotime="0" inverse="0"]

Example of countdown in a popup - Best WordPress Popup Plugin
Example of countdown in a popup - Style #1

Example #2:

Let's use textual time format and change the color style of the countdown. The shortcode will be:

[cmpop_countdown time="+2 DAYS" strtotime="1" inverse="1"]

Example of countdown in a popup - WordPress Popups
Example of countdown in a popup - Style #2

Button Shortcode

This shortcode allows to display a button with a link. Note: this shortcode was introduced in version 1.6.0.

Shortcode: [cmpop_cta]

Parameters

  • color - Choose the color of a button between "orange" or "green" for button types "button" or "iframe".
  • label - Enter the text which will be displayed inside of the button.
  • type - Choose the type of a button between "button", "simple" or "iframe".
  • url - Enter the link to external URL for button types "button" or "simple", or URL to image for "iframe".

Example:

[cmpop_cta color="orange" label="Get WP and Magento products NOW" type="button" url="https://example.com/"]

Example of adding a button to a popup - WordPress Plugin Popup
Example of adding a button to a popup

More information about the WP Popup Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.