Hi, I’ve followed the instructions for displaying a hidden popup as found here:
https://kriesi.at/support/topic/lightbox-for-mailchimp-form/#post-582439
But it’s not working. Console shows:
(index):319 Uncaught TypeError: jQuery(…).magnificPopup is not a function
Any ideas? Site is under construction, login credentials below…
Hey minimay,
I updated your script in functions.php to:
function popup_inline() { ?>
<script type="text/javascript">
jQuery(window).load(function(){
jQuery('.open-popup-link').magnificPopup({
type:'inline',
midClick: true
});
});
</script>
<?php }
add_action('wp_head', 'popup_inline');
Then since we can’t add the correct class to the link url inside the button, I created a new button in your code block by copying the html of your current button and adding the class:
<div class="avia-button-wrap avia-button-center avia-builder-el-53"><a href="#test-popup" class="open-popup-link avia-button avia-icon_select-no avia-color-theme-color avia-size-medium avia-position-center "><span class="avia_iconbox_title">I’d like more info, please</span></a></div>
It is now working, please check.
For anyone else wanting to do this please read here.
Best regards,
Mike
Thank you!
Hi,
Glad we were able to help, we will close this now. Thank you for using Enfold.
For your information, you can take a look at Enfold documentation here
and the video tutorials here
And if there are features that you wish Enfold had, you can request them and vote the requested ones here
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)
Best regards,
Mike