Hello,
I’m using the X Theme and the Contact Form 7 plugin. Since the on_sent_ok became obsolete, I have to add the following javascript function ro redirect after submission. I have to add it in the header.php but I can’t seem to edit it properly since I don’t see the entire code when I go in the Editor of the theme.
Here’s the javascript I wanna add.
< script type=“text/javascript”>
document.addEventListener( ‘wpcf7mailsent’, function( event ) {
location = ‘YOUR URL’;
}, false );
Here’s what I see when I go to the theme editor
Thanks