Contact Form 7 WordPress Tutorial Submit Button Redirect
This WordPress tutorial explains how to add a redirect to the submit button with Contact Form 7
Contact Form 7 is one of the most widely used contact form plugins in the WordPress universe. Its simple design layout allows for great customizations but for the beginner this can be a tedious process. Today we focus on a task that should be easy, but has given many trouble. How does one redirect the “Submit” button to another page? Lets understand why a contact form would need to do this in the first place.
Contact forms gather information from a potential client and delivers a leads to the business. Many times the business would like to thank the client for filling out the form, after all this will lead to future contacts. The submit button will redirect the client to a thank you page. This can come in handy when the performance of the contact form a tracking code can be inserted into the thank you page. This ensures only the successful click of the submit button get tracked not other web site traffic.
Well lets get down to it.
1. Click the contact form you have been working on under the contact tab.
2. Scroll down to the heading “Additional Settings”.
3. Insert this code on_sent_ok: “location.replace(‘http://yourdomain.com/’);”
That’s it. Now the submit button will redirect to the page of your choice.
This screenshot shows exactly where it goes.
This WordPress tutorial is brought to you by Silvernail Web Design.
Let our WordPress Services Deliver Results
WordPress Web Site Design, SEO Optimization, Content Marketing and Social Media Management