-
AuthorPosts
-
November 27, 2017 at 7:57 pm #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?
November 30, 2017 at 11:58 am #883336Hey,
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,
YigitNovember 30, 2017 at 12:10 pm #883346Hi 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 7 years ago by rhae.
November 30, 2017 at 12:26 pm #883358Hi!
I added the code to bottom of functions.php file in Appearance > Editor and captcha labels have changed. Please review your website :)
Cheers!
YigitNovember 30, 2017 at 12:29 pm #883362Hi Yigit,
I still see the English text above the forms. I tried a different browser but no change there as well.
November 30, 2017 at 12:31 pm #883366Hey!
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!
YigitNovember 30, 2017 at 12:35 pm #883370Hi Yigit,
Still no change visible on the site on my end :(
November 30, 2017 at 12:39 pm #883373Hi!
Please flush browser cache and refresh your page a few times – http://wiki.scratch.mit.edu/wiki/Hard_Refresh
Best regards,
YigitNovember 30, 2017 at 12:44 pm #883375Hi Yigit,
Thanks a lot! Really weird, but it works now.
Problem solved! :-)November 30, 2017 at 12:47 pm #883378Hi,
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 -
AuthorPosts
- The topic ‘Change captcha label in functions.php’ is closed to new replies.