Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #882339

    Hi, I would like to change the captcha label ‘Please prove that you are human by solving the equation ‘ to another language in my child theme functions.php file. I found an earlier post about this, but that code doesn’t work in this version of Enfold, and I can’t get it to work.

    add_filter('avia_contact_form_elements', 'avia_change_caption_captcha', 10, 1);
    function avia_change_caption_captcha($form_fields)
    {
            if(!empty($form_fields['avia_age']['label'])) $form_fields['avia_age']['label'] = "New captcha text.";
        return $form_fields;
    }

    Any idea on how to change this label?

    #883336

    Hey,

    It still works fine on my end. Could you please create temporary admin logins and post them here privately so we can look into it?
    If you do not mind, please attach FTP logins as well, just in case we need to access files directly on your server.

    Best regards,
    Yigit

    #883346

    Hi Yigit,

    thanks for looking into it. I’ve added the private details.
    The text I would like to appear on both of my forms is ‘Los als veiligheidsmaatregel de volgende som op ‘ instead of ‘Please prove that you are human by solving the equation ‘

    The forms are here:
    http://www.kinderfeestjesmeteenverhaal.nl/verkooppunten/
    http://www.kinderfeestjesmeteenverhaal.nl/contact/

    As said, the savest option for me would be to add them to the child theme functions.php to avoid problems in the future.

    • This reply was modified 6 years, 11 months ago by rhae.
    #883358

    Hi!

    I added the code to bottom of functions.php file in Appearance > Editor and captcha labels have changed. Please review your website :)

    Cheers!
    Yigit

    #883362

    Hi Yigit,

    I still see the English text above the forms. I tried a different browser but no change there as well.

    #883366

    Hey!

    That was because i added the code as is. Now i edited the file again and changed the text to “Los als veiligheidsmaatregel de volgende som op”. Please review your website

    Cheers!
    Yigit

    #883370

    Hi Yigit,

    Still no change visible on the site on my end :(

    #883373

    Hi!

    Please flush browser cache and refresh your page a few times – http://wiki.scratch.mit.edu/wiki/Hard_Refresh

    Best regards,
    Yigit

    #883375

    Hi Yigit,

    Thanks a lot! Really weird, but it works now.
    Problem solved! :-)

    #883378

    Hi,

    You are welcome! :)

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Change captcha label in functions.php’ is closed to new replies.