Forums

Captcha Before Submit Button (1 post)

  1. Nasir Zia
    Member
    Posted 8 months ago #

    Hi,
    I have installed a Captcha plugin, by default the captcha appears below the submit button…
    What is the correct way to bring the captcha above the submit… I have tried to customize the code in comments.php file which is in theme’s folder… by moving do_action(‘comment_form’, $post->ID); above the submit code… But no success..
    It brings the captcha above the comment form…
    Can anyone here please suggest a right method..
    I have pasted the edited code below…

    $out .= '<p>Message: <span class="required">(required)</span></p>';
     $out .= '<textarea name="comment" class="textarea-ctrl" id="comment" rows="5" cols="10"></textarea>';
    $out .= '<div style="height:5px;"></div>';
    do_action('comment_form', $post->ID);
    $out .= '<input name="submit" id="respond-send" type="submit" value="'.$pi_general->getSubmitCommentBtnName().'" />';
    echo $out;
    comment_id_fields();
    $out = '';
    $out .= '<div class="cancel-respond" id="cancel-comment-reply">';
    echo $out; </div>

    Thanks

Reply

You must log in to post.

About this Topic