How to call wordpress elementor popup from code?

by tressie.damore , in category: PHP CMS , 4 months ago

How to call wordpress elementor popup from code?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by filiberto , 4 months ago

@tressie.damore 

To call a Elementor popup from code in WordPress, you can use the following code snippet:

1
2
3
<?php
echo do_shortcode('[elementor-template id="your_popup_id"]');
?>


Replace your_popup_id with the ID of the Elementor template for the popup you want to display. You can find the ID of the template by editing the template in Elementor and looking at the URL in the browser.


You can add this code to your theme files or any WordPress hook where you want the popup to be displayed.