Customize the cancel_comment_reply_link

Although the post says,1 year ago, but maybe someone needs to know how, so I will share my knowledge. You may create a file, named comments.php in your active themes’s root directory and make changes to it: <h3>Comment form title</h3> <p><?php cancel_comment_reply_link(); ?></p> <form id=”commentform” action=”<?php echo site_url(); ?>/wp-comments-post.php” method=”post”> <textarea name=”comment” id=”comment”></textarea> <?php comment_id_fields(); … Read more

Threaded Comments Feature not working

You have a couple potential issues: Your version of WordPress and/or your current Theme does not support threaded comments. What version of WordPress are you using? What Theme are you using? Something is interfering with comment display What Plugins are you using, that might be interacting with comments? These would include anti-spam Plugins, security Plugins, … Read more

Change the tag of the comment submit button

You should be able to change the HTML structure for the comment form’s submit, with the comment_form_defaults filter. Here’s an untested example: add_filter( ‘comment_form_defaults’, function( $defaults ) { // Edit this to your needs: $button = ‘<input name=”%1$s” type=”submit” id=”%2$s” class=”%3$s” value=”%4$s” />’; // Override the default submit button: $defaults[‘submit_button’] = $button; return $defaults; } … Read more

Why does comment_reply_link launch the reply form at the wrong spot on the comment section?

Because that’s done in javascript, and you have to enqueue that javascript for it to work, as stated in the docs: If JavaScript is enabled and the comment-reply.js JavaScript is loaded the link moves the comment form to just below the comment. https://codex.wordpress.org/Function_Reference/comment_reply_link e.g. function wpse289875_enqueue_comments_reply() { if ( is_singular() && get_option( ‘thread_comments’ ) ) … Read more

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

No, it is not a bug. This is how core handles it. If you look into /wp-includes/comment-template.php, you’ll notice, that the only difference in <form> element, is novalidate attribute added, when current_theme_supports( ‘html5’, ‘comment-form’ ) is true. But there are other html elements within comment form, which are affected by theme’s choice of html5 support. … Read more