Programmatically open a modal | WordPress.org

[ad_1]

Thank you so much for the plugin. It’s been a real help.

I am looking to open the modal under certain conditions, in my case triggering it from Javascript in the footer.

I’ve found bodModal.initModal(); only opens the modal on the page when the modal has already been open (e.g. on page load).

Is there a way I can call to open a modal through code?

Thanks

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer