• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to add Recaptcha Code to Theme

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to add Recaptcha Code to Theme

This topic is: not resolved

Tagged: recaptcha

  • This topic has 4 replies, 2 voices, and was last updated 8 years, 7 months ago by cmalamed.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 2, 2015 at 4:03 pm #149862
    cmalamed
    Participant

    Does anyone have experience with adding Recaptcha Code so that it works with a contact form plugin? The instructions from Google are this:

    Paste this snippet before the closing </head> tag on your HTML template (and they give you a key)
    Paste this snippet at the end of the <form> where you want the reCAPTCHA widget to appear (and they give you a key)

    Wondering if there is a way to add it to functions.php and even to specify which page it should go on.
    Thanks.

    May 2, 2015 at 5:23 pm #149868
    Brad Dalton
    Participant

    You can add both manually but its easier to use a form which includes it like Ninja forms.


    Tutorials for StudioPress Themes.

    May 2, 2015 at 5:34 pm #149874
    cmalamed
    Participant

    Interesting. Thanks, Brad. I didn't see how to add the second key manually, because there was no <form> tag in the plug-in files that I could see. I was also wondering if it was possible to add the snippet for the first key to just one page (my Contact page) rather than to the entire template, but I guess not.

    May 2, 2015 at 6:13 pm #149878
    Brad Dalton
    Participant

    You wouldn't add the code to a forms plugin because you would lose it when the plugin updates.

    You can add the snippet to one page using a custom function with conditional tag..


    Tutorials for StudioPress Themes.

    May 2, 2015 at 8:23 pm #149913
    cmalamed
    Participant

    Thanks, Brad.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble