Tagged: CONTACT FORM, umlaute
-
AuthorPosts
-
January 20, 2015 at 7:15 pm #382596
How can I solve this problem with the contact form?:
The field for E-Mails does not accept emails which contain a German Umlaut like ä, ö, ü. I want to keep the validation “gültige Emailadresse” (valid email address). Thank you for helping!January 22, 2015 at 3:50 am #383486Hey vonhektor!
please refer to this post: https://kriesi.at/support/topic/international-accent-marks-and-diacriticals/#post-36664
Regards,
AndyJanuary 23, 2015 at 11:35 pm #384712Thanks Andy, I tried to follow up the instructions however there might be some changes in the file directory of enfold and file names meanwhile? There is no .js file named quicksand_all.font.js. I only could find the folder framework but not even helper_functions … so I wonder whether I miss something or ihey are really not there. Since I work with the Child theme what would be the code for the child function.php to make the changes work beyond an theme update? Thanks!
January 26, 2015 at 11:35 am #385346Hi!
Not sure if this is going to work but try to edit framework > php > class-form-generator.php, find this code on line 790:
if(preg_match("!^[\w|\.|\-]+@\w[\w|\.|\-]*\.[a-zA-Z]{2,20}$!", urldecode($_POST[$id]))) return "valid";
Replace it with:
if(preg_match("!^[0-9\p{L}_\s-]+@\w[\w|\.|\-]*\.[a-zA-Z]{2,20}$!u", urldecode($_POST[$id]))) return "valid";
Cheers!
IsmaelApril 9, 2015 at 10:14 am #425792Hi Ismael,
I struggle with German Umlauts as well. The problem with my website is that headlines do use Umlauts, but they are just not shown in the first row of the headline. It seems like the container is just too small. In the following rows Umlauts are displayed correctly.
So here come my questions:
1. is the above solution the correct one for my problem?
2. And if so, please help me to find the class-form-generator.php. I’m not that experienced but even with the search function I can’t indicate it on the server. Also in the WordPress Editor I can’t find framework > php > class-form-generator.php. Is there another way to go?
Thank you so much!
SandraApril 10, 2015 at 5:07 pm #426653Hey!
If they are being hidden then it’s probably a overflow:hidden CSS rule somewhere. Send us a link to your page and we’ll give you some CSS to fix it.
The class-form-generator.php file is in /enfold/framework/php/. You’ll need to edit it via FTP or perhaps your hosting provider has a web based file editor you can use.
Best regards,
Elliott -
AuthorPosts
- You must be logged in to reply to this topic.