• Resolved ToniRome

    (@tonirome)


    I see the example code you provide for adding reCAPTCHA, which I added to the bottom of wplf-form-validation.php, replacing “RECAPTCHA_KEY” with my secret key.

    I then followed Google’s instructions to automatically render the reCAPTCHA widget. I added this before </head>: <script src=”https://www.google.com/recaptcha/api.js&#8221; async defer></script>
    And this to my contact form code: <div class=”g-recaptcha” data-sitekey=”your_site_key”></div>, replacing “your_site_key” with my site key.

    But it caused my dev site to seize. Could you please give more specific instruction as to integrating the code. Did I put the code it in the wrong file? In the wrong place of the right file? Am I missing a step?

    Thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • JanrikV

    (@nullmob)

    Have you tried quotes? E.g.

    $secret = "RECAPTCHA_KEY";

    • This reply was modified 6 years ago by JanrikV. Reason: Quotes added
    Thread Starter ToniRome

    (@tonirome)

    That did it! I had just copied the code from github and the quotes were missing. Thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Integrating reCaptcha’ is closed to new replies.