Hello,
I checked the documentation and gave it a try.. it doesn’t work – I’m sure I’m missing something really easy and I’m going to feel like an idiot once you point out what I’m doing wrong!
This works: on_sent_ok: “$.fancybox.close();”
This does not:
add_action( ‘wp_footer’, ‘mycustom_wp_footer’ );
function mycustom_wp_footer() {
?>
<script type=”text/javascript”>
document.addEventListener( ‘wpcf7mailsent’, function( event ) {
$.fancybox.close();
}, false );
</script>
<?php
}
Where can we see the site?
Hello. This is at:
wwww.otstechs.com/acuveterans
Try switching to the default theme and deactivating all other plugins.
I already did that and it behaved the same. I can’t leave it that way long term for you to take a look at – I can do it for a short period of time if you want – or else do you have any other ideas?