X

Obfuscate Email Links Shortcode

It’s never a good idea to write out your e-mail address publicly online. It’s an invitation for spam, among other things. Luckily, WordPress has a built-in shortcode you can uses to link to your e-mail address in a less obvious way. Feel free to use this code any time you want to easily, and quickly, link to your contact address within a page, post, or widget.

Paste the code in your functions.php file. Then wrap email addresses in [mailto] [/mailto]

Comments  Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!