Why does `add_theme_support( ‘html5’, array( ‘comment-form’ )` disable client side validation?

In order to use HTML5 markup for the comment forms, I add the following code snippet to functions.php: add_theme_support( ‘html5’, array( ‘comment-form’ ) ); However, it disables client side validation on form submit and I get redirected to an error page: Now, if I remove add_theme_support( ‘html5’, array( ‘comment-form’ ) ); and submit the comment … Read more

comments reply script not working

Sadly my “reply” link for threaded comments is not working. The current situation: First i load the comments reply script (check if scripts content load: works) into the <head> using two functions (the first wp_register_script() at the init hook, the second wp_print_scripts() at the wp_head hook): Then i add the Reply link: comment_reply_link( array( ‘reply_text’ … Read more

How to add a class to the comment submit button?

How do I add a class to the comment submit button? The simplified function comment_form(array(‘id_submit’=>’buttonPro’)); obviously only changes the id and class_submit does not seem to exist. I have read through both Otto’s and Beau’s writeups but to no avail. 7 s 7 If you check out the source of the function comment_form(), you’ll see … Read more

How to wrap submit button of comment form with div

Is there a way to wrap the submit button with html element while using wordpress function comment_form function. $comments_args = array( ‘id_form’ => ‘main-contact-form’, ‘class_form’ => ‘contact-form’, ‘class_submit’ => ‘btn btn-primary btn-lg’, ‘label_submit’ => ‘Add Comment’, ‘fields’ => $fields, ‘title_reply_before’ => ‘<div class=”message_heading”><h4>’, ‘title_reply_after’ => ‘</h4><p>Make sure you enter the(*)required information where indicate.HTML code is … Read more

How to rearrange fields in comment_form()

Im using a custom filter to change the fields, but can´t figure out how to change the order of the fields in the comment form. Desired order: comment field (first/top) name email website This is the code which I am currently using: function alter_comment_form_fields($fields){ $fields[‘comments’] = ‘Test’; $fields[‘author’] = ‘<p class=”comment-form-author”>’ . ‘<label for=”author”>’ . … Read more