Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1204728

    Is there a way to only load Recaptcha JS files on the page which utilizes forms . Why load it through out the website , it causes money pages to load extra stuff and increase loading time . This would be a good change for upcoming update of Enfold theme too .

    #1205295

    Hey 7thflow,

    Please have a look at the following thread:

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1205471

    The function that was mentioned in the post is no longer in the file mentioned . Also recaptcha code and files are still getting loaded on all pages , can we just limit it to the page where it is used .

    #1206263

    Hi 7thflow,

    Well, this option is not available at the moment. I will forward this as a feature request, our devs will consider it for implementation.

    Best regards,
    Victoria

    #1208467

    Can you suggest some work around . I only need some limiting factor to load recapcha files

    Regards

    #1210246

    Hi,

    You can use the avf_load_google_recaptcha_api_prohibited filter to prevent scripts from loading on pages without contact forms.

    // https://github.com/KriesiMedia/enfold-library/blob/master/actions%20and%20filters/External%20Services/avf_load_google_recaptcha_api_prohibited.php

    Thank you for your patience.

    Best regards,
    Ismael

    #1210251

    Why do you change the name of the filter with the same functionality and – yes, it is now no longer “disable” but “prohibited” ?
    That you generally wanted to change the name of the filter to avf- is understandable, but that was already given here.
    I have to go and check now my installations, where I used the old filter name.

    To those who are interested to use this filter with contact-form-7 too:
    that one line :
    $prohibited = ( false !== strpos( $content, '[av_contact ' ) ) ? false : true;
    has to be replaced by:
    $prohibited = ( false !== strpos( $content, '[contact-form-7 ' ) || false !== strpos( $content, '[av_contact ' ) ) ? false : true;

    #1211795

    Hi,

    Why do you change the name of the filter with the same functionality and – yes, it is now no longer “disable” but “prohibited” ?

    The whole recaptcha script has been refactored and Guenter might have missed or forgot to use the same name for the filter. Thank you for understanding.

    Best regards,
    Ismael

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