• rumraisingelato

    (@rumraisingelato)


    Hi –

    In the leave a reply section of posts, how can we make the “comment” field required? Right now, it looks just like the demo (with no *), so it’s not required. I would like to make it required.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Steven (LyraThemes)

    (@stevenlyrathemes)

    Hi Jodi,

    The comment field should be required by default, but you’re right that it doesn’t have that asterisk. If you’d like to add this, you can edit comments.php in your child theme and insert an asterisk in line 24…it should look like this:
    $comment_field = '<div class="form-group form-group-comment"><label class="form-label form-label-comment">'. esc_html__( 'Comment', 'juliet' ) .' *</label><textarea rows="5" cols="" class="form-control" id="comment" name="comment" placeholder=""></textarea></div>';

    If you have any trouble, let us know!

    Thread Starter rumraisingelato

    (@rumraisingelato)

    thanks Steven. I will give this a try. have a great weekend!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Post comment field mandatory’ is closed to new replies.