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

    (@wysija)

    Just add this script on your footer.php right after the call to wp_footer():

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

    Let us know if it worked!

    Hi,

    I have this problem too. however, I have a dynamic theme, that doesn’t have a standard footer.php.

    It seems as though the plugin should do this as there is the option to have it default to checked, yet it doesn’t save, is it possible to have this work on a later update?

    Many thanks!

    Hi Again,

    Is there a hook/filter etc that can be put in the functions.php to do this perhaps?

    Thanks, Andrew

    Marcelo Pedra

    (@kent-brockman)

    Hi! I tried the above code and it works well.

    @solosails: I also use a dynamic theme, but the correct way to add this kind of things without messing things up with the original source code of the theme, is by using a plugin. I highly recommend using this one:
    https://www.ads-software.com/plugins/css-javascript-toolbox/
    It allows you to insert HTML, CSS, JS, PHP, to specific pages, all the site, or even by using shortcodes. And the codes are injected inline, not like the Custom CSS by JetPack which insert an external file and sql query for every page.

    Cheers!

    solosails

    (@solosails)

    Hi @marcelo thanks for the tip, regards, Andrew

    Please can you add this as an option in the plugin! Cheers

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Default value for checkbox’ is closed to new replies.