Hi.
I’d like to encrypt my mail address on my site.
Simple hacks like xxx[AT]xxxxx[DOT]com are peanuts for mail bots.
I need to show my email address in addition to the contact form on my website.
How can I do this to be protected from the mail bots?
Thank you very much!
Hey mario_md,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
Victoria
Thank you Victoria,
I found a solution of the university of Hamburg. But how can I include javascript to the theme? I don’t want to write the script into the head.php, because if there is an update I need to write it again in th head.php.
How can I include my uploaded “encryptmail.js” to my site?
Greetings
Mario
Hi Mario,
You can add your code to a function:
function add_custom_code(){
//CODE
}
add_action('wp_head', 'add_custom_code');
Please refer to this for enqueuing files: https://www.wpbeginner.com/wp-tutorials/how-to-properly-add-javascripts-and-styles-in-wordpress/
Best regards,
Rikard