How To Customize Comment Submit Button In WordPress.


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
return $button;
add_filter('comment_form_submit_button', 'comment_form_submit_button');

Thus customize your comment submit button as you want.

Have fun


  • jennifer

    February 17, 2017

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

  • 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

  • corburterilio

    March 13, 2017

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

  • Waynenof

    March 21, 2017
  • 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


Leave a Reply