• Resolved rbaccaro

    (@rbaccaro)


    Hi,

    The option to be “checked by default” the checkboxes under comments is not working on the frontend. I am using Bootscore theme.

    Any idea how to fix it?

    For now, I am forcing like this:

    function force_checkbox_checked()

    {

    ?>

    <script type="text/javascript">

    document.addEventListener('DOMContentLoaded', function () {

    var checkbox = document.getElementById('comment_subscribe');

    if (checkbox) {

    checkbox.checked = true;

    }

    });

    </script>

    <?php

    }

    add_action('wp_footer', 'force_checkbox_checked');

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xlthlx

    (@xlthlx)

    Hi @rbaccaro,
    Sorry for the late reply.
    Thanks for highlighting the issue, and sorry for the inconvenience.
    I had a first look, and It’s not clear why it’s not working, I checked also with the other themes, and it has the same problem.
    I’ll continue to work on it and let you know.

    Plugin Author xlthlx

    (@xlthlx)

    Hi @rbaccaro,
    I found the bug and just committed a new version of the plugin.
    If you update it, that should solve the problem.
    Please tell me if everything is fixed now.

    Thank you very much

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.