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

    #573951

    Hey 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,
    Yigit

    #740509

    Is 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?

    #740657
    #740856

    Yigit….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.

    #740860

    Hey!

    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,
    Yigit

    #740864

    That 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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Captcha text change’ is closed to new replies.