Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    I’m afraid you won’t be able to edit the HTML in the form without making changes to the Jetpack plugin itself, in modules/comments/comments.php. We offer an option to customize the comment form title via Settings > Discussion in your dashboard, but this field won’t allow you to add HTML tags to that title.

    Thread Starter Bryan Hoffman

    (@spigot)

    Is there any way that the plugin could honor the filters the default comment system has available? Something like:

    add_filter( 'comment_form_defaults', 'my_comment_form_defaults', 11 );
    
    function my_comment_form_defaults( $defaults ) {
    
        $defaults['cancel_reply_link'] = __( '<i rel="tooltip" title="Cancel Reply" class="icon-remove-circle"></i>' );
        $defaults['title_reply'] = __('<span>Leave a Reply</span>');
        $defaults['title_reply_to'] = __('<span>Leave a Reply to %s</span');
    
        return $defaults;
    }
    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    We do plan on offering more ways to customize the Jetpack Comment form in the future, and we will certainly do our best to use the default comment filters whenever possible.

    I don’t have an ETA for this at the moment, but you can keep an eye on the changelog to get to know when we will introduce such changes.

    Thread Starter Bryan Hoffman

    (@spigot)

    Thanks Jeremy.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Edit HTML output on Jetpack Comments’ is closed to new replies.