Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Google Captcha will be displayed and working correctly only in case you are using standard registration, login and comments forms pages. Your page with “Lost password” form is the standard WordPress page, that is why Google Captcha works there. In cases with custom pages it is necessary to add some changes:

    1) Install the Google Captcha plugin and activate it.
    2) Open the file with the form (where you would like to add google captcha to).
    3) Find a place to insert the code for the google captcha output.
    4) Insert the necessary lines:

    if( function_exists( 'gglcptch_display' ) ) { echo gglcptch_display(); } ;

    If the form is HTML you should insert the line with the PHP tags:

    <?php if( function_exists( 'gglcptch_display' ) ) { echo gglcptch_display(); } ; ?>

    Sincerely,
    BestWebSoft Support Team

    Thread Starter Dimu

    (@cry0nics)

    It worked! Thank you.

    Hi,

    So would this be in the comment_form() function part of the core, or outside in something like comments.php. when I apply it after the comment_form() function, it doesn’t work. What would be suggested? Since it’s outside the comment_form() function it doesn’t get considered when triggered for the submission of the form….

    Would using a filter work in this case? I don’t like changing the core for obvious reasons.

    Thanks for your help. 🙂

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi Dimu,

    You’re welcome! Please feel free to contact our support team with any questions in future.

    Have a nice day!

    Sincerely,
    BestWebSoft Support Team

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi GuitarKat,

    Please try to use one of these options for displaying recaptcha block in comments form of your theme (it is necessary to insert one of them in “functions.php” file of your theme):

    1) if ( function_exists( 'gglcptch_commentform_display' ) )
    add_action( 'comment_form', 'gglcptch_commentform_display' );

    Instead of comment_form you can add comment_form_top in order to change the block location.

    2) if ( function_exists( 'gglcptch_commentform_display' ) ) {

    add_filter(

    'comment_form_submit_field',

    function( $submit_button ) {

    gglcptch_commentform_display();

    return $submit_button;

    }

    );

    }

    Sincerely,
    BestWebSoft Support Team

    Thanks! 🙂

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    You’re welcome! Please feel free to contact us with any question in future.

    Have a nice day!

    Sincerely,
    BstWebSoft Support Team

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Captcha on multisite not visible’ is closed to new replies.