Plugin Contributor
Tracy Levesque
(@liljimmi)
🏳️🌈 YIKES, Inc. Co-Owner
Hi Omid.
Thank you so much for the kind words. I will see if Evan knows of a way to change where our opt-in checkbox is positioned. He may have time to look into this tomorrow.
Thank you!
-Tracy
Hi Tracy,
That’s great! I am engaged to receive a solution.
Kind Regards
Omid
Hi Otoraby,
I’m not sure why but remove_action() doesn’t seem to be working as expected. So it’s not possible to remove and re-add the checkbox using that function, but you should be able to hide the current checkbox, and re-generate the checkbox in the desired location using the following snippet:
function add_text_before_submit_button( $submit_field, $args ) {
?><style>p.comment-form-comment+#yikes-easy-mailchimp-comment_form-checkbox{ display: none; }</style><?php
return do_action( 'comment_form_field_comment' ) . $submit_field;
}
add_filter( 'comment_form_submit_field', 'add_text_before_submit_button', 11, 2 );
I have tested it on my end, and it appears to have moved things down a bit, just before the submit button.
Please let us know if that works out for you.
Thanks!
Evan
Hi Evan,
Thank you so much! It works like a charm 🙂
(@otoraby)
10 years, 4 months ago
Hi,
First let me thank you for your well-structured plugin that really works!
Then I would know may I change position of checkbox in comment form?
Now the checkbox is between comment textarea and author field but I would move it exactly above submit botton.
This is my sample comment form:
http://tinyurl.com/jm3kyem
Thank you in advance.
Omid
https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/