Unfortunately, this often leads to problems if someone has more than one email address saved on his or her device. For example, a new message window using Outlook will open if visitors have it installed. Using email links in WordPress forces a visitor’s device to open his or her primary email platform. However, it may be simpler to avoid links in post and pages. Using good spam protection should already be on web hosting services. These messages can range from phishing emails to steal your information to spreading malware. You also want to be careful as hackers will send spam en masse thanks to scraping addresses from websites. Essentially, these bots collect email accounts from links like the above and add them to a database for spam.Īlthough the practice of selling email lists isn’t as robust as it was in the early 2000s, it’s still common enough to fill your inbox with unsolicited messages. People often use scraping bots to scour the Internet looking for email addresses. Although the link may seem simple enough, it could cause quite a few headaches in the very near future. Problems that Arise From Email Linksīefore you start adding email links to your posts and pages, you need to consider some of the problems that you’ll face. For example, you could add a Text widget to your sidebar and enter the above code to create an email link. This coding is usable in many areas of the website. Otherwise, every word after the “ a href” will be added to the link. It’s vital that you remember to add the “ ” to close the code. So, this is how it would look if you were to manually add the HTML code (replace “” with your domain):Ĭontact us. The only exception is that you use “mailto:” and the email address instead of the “http:” and a website URL. In this case, you can see the “ a href” coding element we created in the above step.Īs you can see, the HTML is near identical to how you would create a link to a website. This area shows you all of the HTML coding elements that are currently in a post, page and many widgets. In the contact page, click the “Text” tab above the editor. Instead of the domain of a website, you simply change it to the “mailto:” prompt. What if you wanted to use the exact HTML code to add a link? It’s not that difficult to place. Now, you have a working email link directly in the contact page of your website. In my example, I already had a Contact Me page available. This depends on whether you already had a contact page or not. Once you’re done with the edits, click the “Publish” or “Update” button on the page. [ht_message mstyle=”info” title=”” show_icon=”” id=”” class=”” style=”” the arrow to apply the changes and save the link. It should look something like this (replace “” with your domain): After the mailto: command, add the address you want people to use. This tells the visitor’s device the link is referring to an email address. Instead of an “http:” link you’ve probably created before, this time you’ll start with “ mailto:“. Highlight the “contact us” portion of the text and click the “Insert Link” button. If this is a business, it probably makes more sense to use something like “Contact Us.” In this page, create a line of text you want people to read to understand they can contact you for more information. Title this new page as “Contact Me” or anything similar. Go to the Pages area of WordPress and click “Add New.” For instance, you can place them in posts, pages, and widgets in the sidebar. Once you get the idea of how it works, you can add email links to various WordPress areas that accept HTML text. Using Code to Link an Email Address in WordPressįor this tutorial, I am going to show you how to add an email link to a contact page. It only takes a few seconds for people to send you messages directly from your post or page. In this tutorial, I’m going to show you how to modify the “a href” code of a link to send a message rather than open a website. I’ll go into why you should refrain from email links on posts and pages in a moment. Although it’s not the preferred method of sending a message, adding the link takes very little effort. Inputting a WordPress email link code is relatively simple. What if you want someone to send an email regarding products or services you offer? This is especially true if the site centers around a business. A vital component to any website is the ability to contact the owner.
0 Comments
Leave a Reply. |