A large number of people who convert HTML sites to WordPress or build a new interface are bloggers. They prefer the open source platform over any other web building solution as it provides versatile content management options. In this guide, we are explaining the methods to add an email address link in WordPress posts or pages. This will enable readers of a blog to send an email to the writer with a single click. One of the biggest advantages of this popular CMS is its flexibility. Users can add a feature or conduct the same modification through various means. People can use a plugin to extend the functionality of a website or introduce the same feature by adding code. They have the benefit of choosing a method which suits their technical skills and convenience. This is one of the foremost reasons which have made WordPress such a widely-used web development solution. Users looking to add email links to posts or pages can also use multiple means to achieve their objective. In this article, we are presenting two methods that they can employ to insert an email address link.
Adding An Email ID Link Through The Visual Editor
WordPress allows users to create hyperlinks and insert them in posts and pages. The option to insert links is present in the toolbar on top of the text area of the visual editor. People have to select the words so the text in which they want to include the URL. Then they have to click the relevant option in the toolbar which opens a field. The link is entered in the field and pressing the “Add Link” tab does the needful. We will use a similar approach for inserting the email link in a post. The following steps will help conduct the process through the visual editor:
1. Enter The Content In The Editor
Access the admin dashboard of your interface. Open the editor from the menu and enter the content in the specified field.
2. Select The Text For Adding Link
Identify the part of the content over which you want to place the email ID link. Most people type the email address and make it clickable with this process. However, it is up to you if you want to select any other text part for the purpose. Click and drag the left mouse button to make the selection. You can also use keyboard controls to choose the words. Place the flashing vertical line cursor at the beginning of the text you want to select. Then use “Shift + Right Arrow Button” to move across to the end of the content being selected.
3. Add The Email Link
In this final step, we will add the email link to the selected matter. After you have made the selection, press “CTRL+K ” on your keyboard. Mac users will have to hit “Command+K”. A popup will emerge with the field where the link must be entered. When you added a hyperlink, the URL looked like the following example:
The letters “http” or “https” usually preceded the web page address being inserted. However, when adding an email link, you must put the “mailto:” prefix before the ID. Take a look at the following example to understand the format of the email link:
Enter your email address in the field of the pop-up box. Press the “Apply” tab at the end of the field. The selected text will now become clickable.
Visitors can now contact you through email by clicking on the inserted link.
Using HTML To Add The Email Link
There is another simple way to manually place an email ID link in a text widget or a theme file. You have to use an HTML code for this purpose. Take a look at the following code snippet:
<a href=”mailto:email@example.com”>Email Me</a>
This line will add the email ID “firstname.lastname@example.org ” to a text widget. You can name the widget as “Contact Us”, “Get In Touch” or use a similar title. You can copy the above code and paste it in the content area of the widget.
Now, any visitor will be able to send you an email simply by clicking the widget on the website.
These are two extremely simple ways to add email address link in WordPress posts or pages. Bloggers will be especially interested in adding this feature. However, they must give proper thought before deciding to place the links. It is undoubtedly a convenience to readers but at the same time, it can be misused by unethical elements. People with malicious intent can use email scraping bots to collect such publicly visible addresses. WordPress users, therefore, must be careful while including email links in their posts.
Jacob Graves is a Sr. WordPress Developer at HireWPGeeks, a company that converts your psd Website to Word Press in a convenient manner. He is a passionate writer and loves to share WordPress and SEO related tutorials.