Call a popup directly from template
-
Hi,
Is it possible to call a function to display a popup from within a template?
Looking at the code looks like do_shortcode won’t do much but add a link to the template, wont include all the required JS and CSS.
Is there some other function?
Reason being we want a particular popup to show on every singe page and the section of the site to display the button which triggers the popup is not inside the post or page content.
Sure could add the shorcode to each post and hide the outpout of the link with css but that becomes an extra step to adding content which is not preferred.
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Call a popup directly from template’ is closed to new replies.