Popups only on pages with shortcode
-
Is it possible to have a popup show up on all pages that have a certain shortcode configured without the need to click a button/link/text?
For example:
Shortcode: [popup-1]
If the page contains [popup-1] then it will show the popup, but if the page does not contain [popup-1], no popup will be shown.
Objective: I want to dynamically determine whether a popup is shown based on a variety of factors. The easiest way to do this is not on a popup level (eg go to the popup settings and configure manually each and every page that it needs to load on) but instead it should check the page for a specific shortcode and only show the popup on those pages where the shortcode is included.
- The topic ‘Popups only on pages with shortcode’ is closed to new replies.