Home › Forums › Quform WordPress › How to disable popup exit on click function › Reply To: How to disable popup exit on click function
December 13, 2020 at 10:06 pm #32341
galaxyto
Participant
Here’s the code that I have in the functions.php to activate the popup
add_action('wp_footer', function () {
if (!class_exists('Quform')) {
return;
}
echo do_shortcode('[quform_popup id="10"]');
?>
<script>
jQuery(function ($) {
$('#menu-item-31558').click(function () {
$('.quform-popup-link-10').click();
return false;
});
});
</script>