Create a Link to an Email Address

When adding a link to an email address, you need to include the mailto: prefix followed by the email address you want to link to. Here is a example:

Here is how you will add it in a WordPress Page, Post, module or widget.

Select the text you want to add the link to and press the insert link button (looks like a chain)

This will bring up the insert link popup where you need to add your mailto: link. Click on the apply button to close the insert link popup.

Adding a link to an email address in WordPress

WordPress will automatically detect that the text you are trying to link is an email address and will add the mailto: prefix to the email address.

You can add an email link to any text. If the text is not a valid email address then you will need to add your complete link. Like this:

Adding email link to any text in WordPress

When setting up an email link, you can also add a subject and/or body to the mailto: HTML code. After clicking on the email, a new email window will open up with those fields already filled in.

To add a subject to the e-mail add ?subject=<subject> to the mailto: tag.

For example, the complete tag would look similar to the example below.

<a href=" out mailto!">First Example</a>

You can also add body text by adding &body=body to the end of the tag, as shown in the example below.

<a href=" out mailto!&body=This is only a test!">Second Example</a>


Сategory Menu
Powered by Zendesk