Tagged: pop up modal window
I’m happy with enfold website in past days. but recently after yesterday updating. my popup window disappear.
when visitor click the “Ask A Quote” button. there’s a cf7 contact form coming on a modal window before.
but now it just go to the top when click. you can check the code:
<h3>Ask A Quote</h3>
<div id=”test-popup” class=”white-popup mfp-hide”>
[contact-form-7 id=”7887″ title=”Contact form 1″]
</div>
and the PHP function code has be done before:
function popup_inline() { ?>
<script>
jQuery(window).on('load', function(){
jQuery('.open-popup-link').magnificPopup({
type:'inline',
midClick: true // Allow opening popup on middle mouse click. Always set it to true if you don’t provide alternative source in href.
});
});
</script>
<?php }
add_action('wp_head', 'popup_inline');
.
now the function is not working. could you please help me with this?
the login link under private content. thanks
Hey keir2012,
Thank you for the inquiry.
Did you set jQuery to load in the footer? In the code above, please look for this line..
add_action('wp_head', 'popup_inline');
.. and try to replace it with.
add_action('wp_footer', 'popup_inline', 999);
And if possible, please update the theme to version 4.9.1 to avoid issues with the product pages.
Best regards,
Ismael
Dear Ismael. works correctly now.Thank you for your great help. have a nice day:)