Contact Form 7 Thank you page

Contact Form 7 Thank you page

The one limitation for Contact Form 7 plugin is that after submitting the form it just shows a text says “your message sent” or something like that. But if we want to redirect visitor to a different page that has a full  content with some more text with thank you confirmation. All you need to do just add the following code to contact form 7 additional setting box that stays at very bottom of a form.

on_sent_ok: "location.replace('url of the page');"

You can set the URL  whatever you like.

But now this technique is deprecated and may not work. So here is the new solution below. Simply add the below code to your theme function.php file

Leave a comment