Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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!

    #383486

    Hey vonhektor!

    please refer to this post: https://kriesi.at/support/topic/international-accent-marks-and-diacriticals/#post-36664

    Regards,
    Andy

    #384712

    Thanks 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!

    #385346

    Hi!

    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!
    Ismael

    #425792

    Hi 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!
    Sandra

    #426653

    Hey!

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.