Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    Thread Starter otoraby

    (@otoraby)

    Hi Tracy,

    That’s great! I am engaged to receive a solution.

    Kind Regards
    Omid

    Plugin Author Evan Herman

    (@eherman24)

    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

    Thread Starter otoraby

    (@otoraby)

    Hi Evan,

    Thank you so much! It works like a charm ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘checkbox position of comment form’ is closed to new replies.