[Plugin: Contact Form 7] URL Redirect if wp_footer not being called
-
For most people who arrive on this question from a Google search, the advice that you’re probably looking for is to add the following to the “additional settings” section of the Contact 7 admin within WordPress dashboard:
on_sent_ok: "location.replace('https://www.YOURSITE.com');"
(see this post)
For others, you can modify the scripts.js file using the instructions from @jcstewart in that same post.
But for me, this hasn’t helped. I, unfortunately, removed the wp_footer tag from my theme because I have pages showing up in a thickbox page; when the thickbox is closed and reloaded, it would load an additional thickbox underneath (very frustrating).
So, some posts recommended that it was necessary for wp_footer to be loaded in order for the url redirect to work in contact form 7. They said that certain javascript was called, but I’m not sure which necessary javascript is being called by wp_footer.
How can I get around this?
- The topic ‘[Plugin: Contact Form 7] URL Redirect if wp_footer not being called’ is closed to new replies.