Hi @skalders,
Sorry for the delay. You can select the Popup Text option in the settings.
Cheers,
Vinny
Hello,
I understand, but that is only for shortcodes. I would like to have a popup where shortcodes do not work. In my case I want a menu button to open the popup. I cannot use a shortcode in wordpress menu links, at least I do not know how.
Ok, here’s one way to do it (probably not the best way).
- Create a link shortcode using the Text Pop-Up and place the shortcode in the text body somewhere;
- Add CSS to hide it – you can use the tag’s ID attribute;
- Make sure the menu link has an ID or unique class name and href=”#”, we’ll use it in a bit;
- Add the following snippet of Javascript, replacing the element identifiers accordingly:
jQuery(document).ready(function($){
$('#the-menu-link').on('click', function(){
event.preventDefault();
$('#the-popup-text-link').click();
});
});
I tested it on the browser console and it worked.
Cheers,
Vinny