Move Checkbox location with simple code fix
-
I asked for help with this a few years ago. You said “the plugin uses the “comment_form_default_fields” filter from WordPress itself to add a “notify_me” key value” and that it was not possible to move the checkbox location.
Jetpack recently changed the location of their comment checkboxes from below the submit button to above the submit button, so I attempted again to fix this. I found in your main.php file that you are using comment_form rather than comment_form_after_fields. Line 50:
add_action( 'comment_form', array( $this, 'approve_comment_option' ), 10, 1 );
If I change comment_form to comment_form_after_fields, the checkbox is moved to above the submit box with the rest of the checkboxes from Jetpack.
Can you please make this fix permanent? The comment_form filter seems to add the checkbox after the entire form which is not ideal. Having the checkbox before the submit button makes more sense.
Thanks!
Sarah
- The topic ‘Move Checkbox location with simple code fix’ is closed to new replies.