New Landing How can we help? Cardinal Nocaptcha Captcha

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Cardinal
  • #151335
    icecast
    Member
    Post count: 182

    Hi, any suggestions on adding google’s nocaptcha captcha to child theme’s function.php so it appears above every comment form’s “POST COMMENT” button?

    Or before any button for any logged out user?

    <div class=”g-recaptcha” data-sitekey=”6LcePAATAAAAAGPRWgx90814DTjgt5sXnNbV5WaW”>
    </div>

    #151347
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code:-

    add_filter('comment_form','sf_add_google_captcha');
    
    function sf_add_google_captcha(){
    echo '<div class="g-recaptcha" data-sitekey="6LcePAATAAAAAGPRWgx90814DTjgt5sXnNbV5WaW" >
    </div>';
    }

    Thanks
    Mohammad

    #151692
    icecast
    Member
    Post count: 182

    thanks, but that did not work when placed in child theme functions.php

    #151695
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please refer this article http://codeforgeek.com/2014/12/add-google-recaptcha-wordpress/. Hope that should help to you.
    Thanks
    Mohammad

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register