Tagged: javascript
Hello;
Long ago, when I actually built pages using HTML, I used to use a script like the following:
<script type="text/javascript">function emailantispam(email1, email2, email3, email4){emailE = email1 + '@' + email3 + email4 + email2; document.write('<a href="mailto:' + emailE + '">' + emailE + '</a>')};</script>
To call on the script in the body of the HTML, one would use something like:
<script type="text/javascript">emailantispam('joe','.com','my','website');</script>
This was particularly successful against e-mail skimming, but I’m not comfortable with figuring out the best way one might integrate this approach into WordPress, and especially with the theme that uses ‘formfields’ where one would normally put e-mail addresses (e.g., social icons).
Is this something that is doable, or is this simply too far out in left field, and would require heavy customization of the theme?
BTW, I would note that I typically put the script in the site’s header, so that it would work regardless of whatever page I was developing.
I really would appreciate some feedback and/or assistance.
Daniel
Hi dziesmer!
Perhaps a plugin would work for you, https://wordpress.org/plugins/email-encoder-bundle/.
Cheers!
Elliott