Viewing 2 replies - 1 through 2 (of 2 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

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Since there is no reply from you, we consider this topic as resolved. We hope you’ve found the solution. If you have any questions, please feel free to contact us via our Help Center – https://support.bestwebsoft.com/.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘captcha shortcode not working’ is closed to new replies.