• 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

Using Google Recaptcha with Genesis, positioning of Recaptcha

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 › General Discussion › Using Google Recaptcha with Genesis, positioning of Recaptcha

This topic is: not resolved

Tagged: comments, position, recaptcha

  • This topic has 3 replies, 2 voices, and was last updated 8 years ago by David Borrink.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 31, 2018 at 11:06 am #215915
    David Borrink
    Participant

    I've installed Google Captcha (reCAPTCHA) by BestWebSoft into a Genesis site using a theme based off Genesis Sample. The Recaptcha is showing up above the field for comments and I'd like it just above the submit button.

    The FAQs for the plugin says,

    How can I change the location of Google Captcha (reCAPTCHA) in the comments form?

    It depends on the comments form. If the hook call by means of which captcha works (‘after_comment_field’ or something like this) is present in the file comments.php, you can change captcha positioning by moving this hook call. Please find the file ‘comments.php’ in the theme and change position of the line

    do_action( 'comment_form_after_fields' );
    or any similar line – place it under the Submit button.
    In case there is no such hook in the comments file of your theme, then, unfortunately, this option is not available.

    Okay, so the comments.php file in the top level of Genesis has this at the end:

    do_action( 'genesis_before_comments' );
    do_action( 'genesis_comments' );
    do_action( 'genesis_after_comments' );
    
    do_action( 'genesis_before_pings' );
    do_action( 'genesis_pings' );
    do_action( 'genesis_after_pings' );
    
    do_action( 'genesis_before_comment_form' );
    do_action( 'genesis_comment_form' );
    do_action( 'genesis_after_comment_form' );

    ... with no submit button. I dug up the comments.php in the lib > structure folder and it has no submit button in it.

    Am I missing something in where this would be located in Genesis?

    January 31, 2018 at 12:42 pm #215917
    Victor Font
    Moderator

    Unless your child theme has overridden the function, the genesis_comment_form action is a wrapper that calls the native WordPress comment_form function. This is a generic HTML5 comment form. https://developer.wordpress.org/reference/functions/comment_form/

    What you really need to do is hook into the genesis_after_comment_form action. You may have to create your own function to do this.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    January 31, 2018 at 2:21 pm #215925
    David Borrink
    Participant

    Hi Victor, thanks for replying. My theme is basically Genesis Sample so there's no override on the comments.

    Where is the genesis_after_comment_form action?

    I did a search in my genesis theme for genesis_after_comment_form and the two files it came up in are comments.php (which is listed in my previous post) and deprecated.php. In the deprecated file it says,

    /**
     * Deprecated. Wrapper for <code>genesis_after_comment_form</code> action hook.
     *
     * @since 0.2.0
     * @deprecated 1.7.0
     */
    function genesis_after_comment_form() {
    
    	_deprecated_function( __FUNCTION__, '1.7.0', "do_action( 'genesis_after_comment_form' )" );
    
    	do_action( 'genesis_after_comment_form' );
    
    }

    So I don't see where the actual working code is for genesis_after_comment_form. It says do_action, but where is the description of the action to take place?

    January 31, 2018 at 3:22 pm #215930
    David Borrink
    Participant

    Translated via Google: Our technical boiler service in Madrid is authorized by the Community of Madrid and certified by the Ministry of Industry so that all the attention you receive from our boiler inspection department will be reliable and guaranteed, which is why our technical service is one of the but recommended to carry out the revision of your natural gas boiler, butane propane.

    Yeah, Julianfra. Whatever.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ 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

© 2026 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