• Resolved Rahendra Putra K?

    (@rahendz)


    Howdy guys, since i’m bad in english so i’ll to the point. I’ve develop theme wordpress. I wanna change button submit of comment form from tag <input> into tag <button>, is it possible to do it?

    i’ve search in google and get some result, i’d tried this step WordPress Trac and nothing happen.

    is add_filter('comment_form_submit_button', callback); has been deprecated now? or i did something wrong? Or if there’s another way to change the button submit?

Viewing 1 replies (of 1 total)
  • Customize submit area for comment form

    function custom_comment_form_defaults($args = array()) {
        // * Submit *
        $args['id_submit']     = 'submit';
        $args['name_submit']   = 'submit';
        $args['class_submit']  = 'btn btn-primary';
        $args['label_submit']  = __( 'Post Comment', 'mytheme' );
        $args['submit_button'] = '<input name="%1$s" type="submit" id="%2$s" class="%3$s" value="%4$s" />';
        $args['submit_field'] = <p class="form-submit">%1$s %2$s</p>';
    
        return $args;
    }
    add_filter( 'comment_form_defaults', 'custom_comment_form_defaults' );

    full list arguments for coomment form: https://github.com/WordPress/WordPress/blob/4.2-branch/wp-includes/comment-template.php#L2138

Viewing 1 replies (of 1 total)
  • The topic ‘Comment Form Submit Button’ is closed to new replies.