I have tried adding using the 'class_submit'
in the array, but that wraps the button in that class, making it clickable only on the button link.
I want the whole button to be clickable.
I also tried this function
function comment_form_submit_button($button) {
$button ='<button class="btn waves-effect waves-light" type="submit">Post Comment<i class="material-icons right">send</i>' . get_comment_id_fields();
return $button;
}
add_filter('comment_form_submit_button', 'comment_form_submit_button');
It makes the whole button clickable, and I got what i wanted. But it turns out the submit button was messed up causing the comment replies to be displayed just like the ordinary comments.
Basically it made all comments as parent in the database rather than as a reply to the previous comment. ( I read this another answer )
Is there a error in the function ? or is there a easier way to achieve my idea?