• I know that I can change the id of the submit button by passing the argument 'id_form' => 'customID', but I want to also add a class. Is there a filter where I can do this or some other method that doesn’t involve editing wp-includes/comment-template.php?

    I know I can style everything the way I want using the id for the submit button, but I want to use a class. I have several helper classes like “rounded” and “shadow” and whatnot where adding a class to an item is much easier than typing out the same browser-specific CSS rules every time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Wait a sec, edit wp-includes/*.php ? You should only edit your theme’s comment template. There you can add whatever ID you want.

    Thread Starter philipwalton

    (@philipwalton)

    Veganist, unless I’m completely missing something, no where in a theme can you set the markup for the comment form. I don’t know why, but you can’t.

    If you know otherwise, let me know.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add class to the submit button of comment_form()’ is closed to new replies.