How To Customize Comment Submit Button In WordPress.

Hi,

We Use wordpress comments_template(); and get the default Comment form.

Sometimes we want to use our custom comment form and we can customize it in comments.php file. But we can not change the submit button’s html codes and can not easily add any class or id in the button and if we want to add html codes in fields like this 'label_submit'=>'Send'It does not work.

Now I’m sharing an easy way to customize Submit button codes.

Now just go to your functions.php file and add the code like this,

function comment_form_submit_button($button) {
$button =
'<button class="submit-btn" type="submit">Submit Comment<i class="icon-paper-plane"></i></button>' . //Add your html codes here
get_comment_id_fields();
return $button;
}
add_filter('comment_form_submit_button', 'comment_form_submit_button');

Thus customize your comment submit button as you want.

Have fun


6 Comments

  • jennifer

    February 17, 2017

    I liked the sites. This is an amazing experience to be here and getting such type of wonderful blog.
    Thanks

    Reply
  • Smithe152

    March 1, 2017

    Nice read, I just passed this onto a friend who was doing some research on that. And he just bought me lunch since I found it for him smile So let me rephrase that Thank you for lunch! Whenever you have an efficient government you have a dictatorship. by Harry S Truman. ggfeabecegackdef

    Reply
  • corburterilio

    March 13, 2017

    You got a very good website, Gladiolus I observed it through yahoo.

    Reply
  • Waynenof

    March 21, 2017
    Reply
  • Smithd68

    April 9, 2017

    Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Thanks ebedbffbddddbkdb

    Reply

Leave a Reply