Just a quick blog post today – but it’s probably very useful for people having issues with contact form 7 no longer redirecting properly to a ‘thank you’ page. The previous method of redirecting to a thank you page in the contact form 7 WordPress plugin was to add a line of code to the ‘Additional Settings’ section in the plugin settings – but this method no longer appears to work while using WordPress 3. The solution, however, is relatively simple:
Firstly, make sure you have gone through the process of upgrading your website/blog to WordPress 3 (including all plugins).
Now, download the BETA version of contact form 7 that is currently in development, found here:
(note: use beta versions of software at your own risk)
Backup the current contact form 7 plugin files in the plugins folder (located at /wp-content/plugins), and install the BETA version of the plugin.
Finally, in the contact form 7 settings, replace any previous code you had in the ‘Additional Settings’ field with the following:
on_sent_ok: "location = 'http://www.example.com/thank-you/';"
Obviously replace the ‘example.com’ website URL with a link to your desired thank you (success) page.
That should do it – feel free to leave a comment below if you are having trouble getting it to work.