Viewing 1 replies (of 1 total)
  • Plugin Author bestwebsoft

    (@bestwebsoft)


    Hi,

    Thank you for contacting us.

    We visited your site and found out that google captcha is already present in your custom form, but this is not our captcha plugin, it was developed by someone else.
    In order to display our Google Captcha (reCAPTCHA) by BestWebSoft in your custom form, you should deactivate google-captcha plugin you are using now and activate Google Captcha (reCAPTCHA) by BestWebSoft. Then, it is necessary to replace the code in script.js file, which is located in [wp_root]/wp-content/plugins/google-captcha/js. So find the lines 8 – 17 and replace:

    $( '.gglcptch_v1, .gglcptch_v2' ).each( function() {
    var container = $( this ).find( '.gglcptch_recaptcha' );
    if (
    container.is( ':empty' ) &&
    ( gglcptch.vars.visibility || $( this ).is( ':visible' ) )
    ) {
    var containerId = container.attr( 'id' )
    gglcptch.display( containerId );
    }
    } );

    with

    $( '.gglcptch_v1, .gglcptch_v2' ).each( function() {
    var container = $( this ).find( '.gglcptch_recaptcha' );
    if ( container.parents( '.create-acc-form' ).length > 0 ||
    ( container.is( ':empty' ) && ( gglcptch.vars.visibility || $( this ).is( ':visible' ) ) )
    ) {
    var containerId = container.attr( 'id' )
    gglcptch.display( containerId );
    }
    } );

    Sincerely,
    BestWebSoft Support Team

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.