Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor podpirate

    (@podpirate)

    Hi,
    I don’t know anything about the newsmag theme (and I will definietly not pay 48 USD just to test a plugin that I give away for free), but very likely newsmag does not apply the filter that WordPress uses, when rendering the comments form. You can try to add this to your theme functions.php:

    function recaptcha_on_comment_form(){
        do_action('recaptcha_print');
    }
    add_action('comment_form_after_fields','recaptcha_on_comment_form');

    This will (propably) render the recaptcha above the message textarea.

    Thread Starter RuyR

    (@energias)

    Thanks podpirate

    By the way, this plugin is the best recaptcha plugin and I use it on every website. ??

    I agree Energias this is a great plugin! 5*

    This worked exactly as you said, is there a way to render the reCaptcha below the message area?

    https://i58.tinypic.com/a9lif8.png

    Plugin Contributor podpirate

    (@podpirate)

    @energias: Thanks ??

    @onlyaction: This is highly depending on your theme. Currently the captcha is appended to the “You may use these HTML Tags…” message, which occurs right before the submit button in the default WP-Themes. Other Themes may handle this in a differnet way.

    If your theme has a custom comment form (check out comments.php in your theme directory), you can try the following:

    Insert this before the comment form (it will remove the default rendering):

    <?php
    // remove default behavior
    if ( class_exists( 'WP_reCaptcha_Options' ) ) {
        remove_filter('comment_form_defaults',array(WP_reCaptcha_Options::instance(),'comment_form_defaults'),10);
    }
    ?>

    Then insert that after the message area

    <?php do_action('print_comments_recaptcha'); ?>

    Good Luck!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Doesn't work on comments’ is closed to new replies.