How to add mail in contact 7 form
To add a mailto link in a Contact 7 form in WordPress, you can follow these steps:
Method 1: Using the Contact 7 Form Builder
- Go to your WordPress dashboard and navigate to Contact > Forms.
- Click on the form you want to edit.
- Click on the "Add Field" button.
- Select "Email" from the field types.
- In the "Email" field, enter the email address you want to link to (e.g.
[email protected]
). - In the "Label" field, enter the text you want to display as the link (e.g. "Send Email").
- Click "Add Field" to save the changes.
- In the form builder, click on the "Settings" icon (three horizontal lines) next to the "Email" field.
- In the "Settings" dropdown, select "Advanced" and then click on "Link".
- In the "Link" field, enter
mailto:
followed by the email address you entered in step 5 (e.g.mailto:[email protected]
). - Click "Save" to save the changes.
Method 2: Using a Custom Code
- Go to your WordPress dashboard and navigate to Appearance > Widgets.
- Drag and drop a "Text" widget to the desired location on your website.
- In the text widget, enter the following code:
<a href="mailto:[email protected]">Send Email</a>
Replace
[email protected]
with the email address you want to link to. - Click "Save" to save the changes.
Method 3: Using a Plugin
- Install and activate a plugin like "Contact Form 7 Mailto Link" or "CF7 Mailto Link".
- Go to your WordPress dashboard and navigate to Contact > Forms.
- Click on the form you want to edit.
- In the form builder, click on the "Add Field" button.
- Select "Mailto Link" from the field types.
- Enter the email address you want to link to and the text you want to display as the link.
- Click "Add Field" to save the changes.
Once you've added the mailto link to your Contact 7 form, users can click on the link to send an email to the specified address.