Email link from modal was working and now stopped
-
Hello — Had everything working great for email disclaimer statement — opening email app & closing modal window — with the help you provided in this thread:
https://www.ads-software.com/support/topic/close-modal-when-opening-email-app?replies=10
Haven’t updated/changed anything in the meantime (except possibly Firefox), and found today that modal has stopped working — the user’s email app no longer opens on clicking “Accept.”
Site is here: https://bit.ly/1zmr3cT (click on email icon)Here’s the script in the child theme’s footer.php:
<script>
jQuery(document).ready(function () {
jQuery(‘#eModal-1, #eModal-2, #eModal-3, #eModal-4, #eModal-5, #eModal-6, #eModal-7, #eModal-8, #eModal-9’).find(‘.flat-custom-button’).click(function (e) {
e.preventDefault();
jQuery(this).parents(‘.emodal’).emodal(‘close’);
});
});
</script>Any ideas would be most welcomed! Thank you!
- The topic ‘Email link from modal was working and now stopped’ is closed to new replies.