Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Wysija

    (@wysija)

    Add this code to your footer.php file right below the call to wp_footer()

    <script>
    (function($){
    	$(document).ready(function(){
    
            $('#mailpoet_checkout_subscribe').prop('checked', true);
    
    	});
    })(window.jQuery);
    </script>

    Is there a way to have the checkbox “checked” by default on the CheckOut and New User Registration page using CSS only? Something like below?

    #mailpoet_checkout_subscribe {
    checked=true;
    }

    OR would any of the below work by adding to functions.php of the child theme?

    add_filter( ‘mailpoet_woocommerce_subscribe_too’, ‘__return_true’ );
    add_filter( ‘mailpoet_woocommerce_enable_checkout’, ‘__return_true’ );
    add_filter( ‘mailpoet_checkout_subscribe’, ‘__return_true’ );

    Your inputs will be appreciated. Thanks much.

    This should be a built in option!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Checkbox set to "checked" by default’ is closed to new replies.