Viewing 6 replies - 16 through 21 (of 21 total)
  • Missing the script include for https://www.google.com/recaptcha/api.js?

    Hi there,

    I have had a look at your site and there seems to be a problem loading the google script you refer to above which is needed to display the recaptcha.

    I think the only way I can help you now is if you allow me to log in to your site. If you are happy to do this please can you send me the login details.

    Thanks, Meg

    Okay so I’ve had a look and the issue is in the file class.csfc.php in the function RegisterScripts()

    The problem lies in the call to wp_register_script( $handle, $src, $deps, $ver, $in_footer );

    You are setting the in_footer as true – “This requires the theme to have the wp_footer() hook in the appropriate place”

    So none of these scripts are getting included. Changing $in_footer to false and also adding the appropriate wp_enqueue_script() resolved the issue.

    So I added the wp_footer() hook to the theme and this is now my code https://pastebin.com/NTGCznjb

    Why am I needing to add the wp_enqueue_script() calls? How do you have it working without them?

    Thanks

    WP themes should call wp_header() and wp_footer() in order to be compatible with plugins. I load the js in the footer so that it does not slow down page load.

    wp_enqueue_script() is already being called within this file \shortcodes\contact-form.php

    I noticed that AJAX was also not working on the site, this script is also loaded in the footer so this issue should be fixed too.

    Meg, is the beta ready for release? It has been almost a month since you released it.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘reCAPTCHA v2’ is closed to new replies.