Support » Plugin: Comment Approved » Checkbox Position

  • Resolved brit77

    (@brit77)


    First off, thank for adding the option for the default state of the checkbox!

    I have one last issue before I can make use of this plugin…the position of the checkbox.

    Can the checkbox be placed below the comment form button rather than above the comment form?

    I have one checkbox already under the submit button (via Jetpack, for subscribing to comments). Stylistically, it makes more sense to have all the checkboxes displayed together.

    Thank you!

    P.S. I see that this was asked already here. The topic is marked as resolved, but I’m not seeing a clear solution, so any further help on the matter would be much appreciated. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nielsvanrenselaar

    (@nielsvanrenselaar)

    Hi brit77,

    Thanks for using the plugin. The plugin uses the “comment_form_default_fields” filter from WordPress itself to add a “notify_me” key value. You could, trough your own functions.php theme file, add a filter and hustle the fields around :).

    function modify_comment_fields($fields) {
        // do something with #fields here
        return $fields;
    }
    add_filter('comment_form_default_fields','modify_comment_fields');
    Thread Starter brit77

    (@brit77)

    Thanks, Niels, for this snippet. I’ve searched the internet, and unfortunately I can’t figure out the missing piece of the function to actually move the “notify me” field to below the submit button.

    Is this even possible? I hope so because I’d like to use your plugin but can’t do so until I can improve the UI by moving this check box.

    Plugin Author nielsvanrenselaar

    (@nielsvanrenselaar)

    I’m sorry, it seems this filter will not work. There is currently no function withing WordPress to sort the custom comment fields.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Checkbox Position’ is closed to new replies.