November 25, 2014 at 6:59 am #357370
Email Protection Code (marked as bold below) was added automatically when using CDN from CloudFlare. When this happen the text for field Form Title and Submit Button are ignored and the text is replaced with default text.
Temporary solution: every time i need to edit the page i have to change “email protection code” with the email before saving. Otherwise the Form Title and Submit Button are restored with default text which are not suitable.
Any help would be appreciated!
/* <![CDATA[ */
/* ]]> */
</script>‘ title=’……November 25, 2014 at 9:47 pm #357964
Hey Khanh Hong!
Is this code for protecting your email from robots? If so then it should only be used when your actually listing the email on your site and not with a contact form. Does cloudflare have a setting where you can turn this off? It seems weird that they would be changing it automatically when you update the post.
I think you will need to contact cloudflare about this. If they don’t have a setting then they probably have a filter you can turn off.
November 29, 2014 at 11:31 am #360048
- This reply was modified 5 years ago by Elliott.
The codes lines is not inserted from CloudFlare. It must be Enfold or WP Super Cache. Could you please confirm that Enfold does not insert such code for email protection? Any idea how i can debug this error and find which function add such code?November 30, 2014 at 5:14 pm #360302
No it doesn’t look like it’s from Enfold. Does it get added when you save your page? Be sure to deactivate all plugins while testing.
ElliottMarch 16, 2015 at 2:03 pm #412110March 17, 2015 at 5:54 am #412775
No, unfortunately not, we don’t have enough information regarding the issue. Is the site using CloudFlare as well? Please contact them regarding the issue. The theme doesn’t have any email protection feature so it’s either the CDN or a third party plugin that injects the script in the contact form shortcode.
IsmaelMarch 17, 2015 at 11:15 am #412847
Thank you Ismael. I got to the root of the issue which was, like you say, the CloudFlare CDN. It was simply a setting in there for email security. A toggle switch!
Just log in to your CloudFlare account in your browser, go to the Security tab and the setting is in there.
Took me ages to find what was causing the problem, and I’m a little frustrated with myself that I didn’t find it sooner, but very relieved that once you toggle the switch to off then the email addresses are reverted back to how they were originally.
Hope this helps other people!
March 18, 2015 at 4:52 am #413358
- This reply was modified 4 years, 8 months ago by SimonB.
The topic ‘Contact Form changes email with Email Protection Code…’ is closed to new replies.