-
AuthorPosts
-
January 28, 2016 at 6:27 pm #573942
Hi,
All good but I want to change a text in the Captcha english text.
Change this text: “Please prove that you are human by solving the equation” to “For extra safety, answer the following questions”.
Where do I do that?
Found the reference in: config-templatebuilder/avia-shortcodes/contact.php
But when I change it all my other languages have it in english!
How to do?Tnx
MagnusJanuary 28, 2016 at 6:35 pm #573951Hey Bipnet!
Please change the text by editing contact.php file in enfold/config-templatebuilder/avia-shortcodes folder and to translate it to your other languags, please install this free software – http://poedit.net/ and go to enfold/lang folder and update the files and translate it as needed :)
Regards,
YigitJanuary 31, 2017 at 7:37 am #740509Is there a way to change the text that is update-proof? I’ve been looking for a working solution. Changing it manually in the existing files will break the moment there’s an update to the theme. Is there a hook for functions.php?
January 31, 2017 at 2:52 pm #740657Hi,
Please refer to these posts to make the changes update proof – http://kriesi.at/documentation/enfold/using-a-child-theme/ – http://kriesi.at/documentation/enfold/child-theme-translations/ – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
Best regards,
YigitJanuary 31, 2017 at 8:02 pm #740856Yigit….you didn’t answer the question at hand though. My question was regarding the captcha text and how to change it without having to go in and edit the actual file that contains it….which would just get overwritten whenever an update is pushed. I know how to use a child theme and I’m not trying to translate anything. I just was looking for a simple hook to throw into my functions.php file that would accomplish a change in that text.
January 31, 2017 at 8:19 pm #740860Hey!
Please add following code to Functions.php file in Appearance > Editor
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; }
Regards,
YigitJanuary 31, 2017 at 8:23 pm #740864That worked. Thanks.
You guys should begin making a support catalog that either contains or links to all of these hook solutions as part of the FAQ. Just to put them all in the same place and make them easier to find for future reference, etc.
-
AuthorPosts
- The topic ‘Captcha text change’ is closed to new replies.