How To Add Link In Contact Form 7 Submit Button

How To Articles

When it comes to building a contact form for a website, Contact Form 7 is a highly favored and robust plugin for WordPress. It provides extensive customization possibilities, empowering you to design a flawless form that meets your requirements. One of the frequently made requests is to include a hyperlink in the submit button, which would redirect the user to a designated page or URL upon clicking. In this article, I will guide you through the steps of adding a hyperlink to the Contact Form 7 submit button.

To begin, you will need to have Contact Form 7 installed and activated on your WordPress website. If you haven’t done so already, you can easily find and install it from the WordPress plugin repository. Once you have it installed and activated, you can proceed with the following steps:

Step 1: Create a Contact Form

The first step is to create a contact form using Contact Form 7. You can do this by navigating to the Contact section in your WordPress dashboard and clicking on the “Add New” button. Give your form a name and click on the “Save” button to create the form template. You will then be redirected to the form editor, where you can add fields and customize the form as per your requirements.

Step 2: Add a Link to the Submit Button

To add a link to the submit button, you will need to modify the shortcode of the submit button. In the form editor, locate the submit button field and find the shortcode associated with it. By default, the shortcode for the submit button looks like this:

[submit "Send"]

To add a link, you will need to modify the shortcode and wrap the text inside the submit button with an anchor tag. Here is an example of how the modified shortcode would look:

[submit "Send"]

Replace “” with the URL where you want the user to be redirected when they click on the submit button. Save the form to apply the changes.

Step 3: Test the Form

After making the changes, it’s important to test the form to ensure that the link is working as expected. You can do this by embedding the form on a page or post, and then submitting a test entry. When you click on the submit button, you should be redirected to the specified URL.


Adding a link to the Contact Form 7 submit button can be a useful feature for guiding users to a specific page or URL after they submit the form. By following the steps outlined in this article, you can easily customize the submit button and create a seamless user experience. Remember to test the form after making any changes to ensure that everything is working as intended. Now go ahead and enhance your contact forms with personalized submit buttons!