New Landing How can we help? Atelier Need to add html to closing head tag

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Atelier
  • #169164
    GTS75
    Member
    Post count: 240

    I’m trying to incorporate Gravity Forms on my website and I’d like to include the google reCAPTCHA function. It says I need to paste this html:

    <script src=’https://www.google.com/recaptcha/api.js’></script&gt;

    to the closing head tag of the page template. Is there an easy way to do this?

    Thanks guys,
    Dan

    #169258
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi Dan,

    Sure, you can add this code to the child theme functions.php file:

    function google_recaptcha() {
        echo "<script src='https://www.google.com/recaptcha/api.js'></script>";
    }
    add_filter( 'wp_head', 'google_recaptcha' );

    – Ed

    #169275
    GTS75
    Member
    Post count: 240

    Seems like a simple fix…but I’m not sure how to do that…is there a tutorial or article on how to add code to the child’s functions.php file?

    #169448
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    you need to activate the child theme that we provide in the download files, then go to Appearance > Editor, on the right hand side click ‘functions.php’

    Then just paste the above code

    – Kyle

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