• Resolved qrobert

    (@qrobert)


    Hello,

    I have an issue when I use the pretty checkbox for the filter.
    I can click on the text label to check the right box, but when I click on any checkbox, it’s always the first one that is checked.

    You can see the issue on the website. Password: dev

    I also have a suggestion. When the pretty checkbox is not enabled, would it be possible to wrap the text and checkbox inside a <label> or use the <label for=”…”> to make the label clickable?

    Thanks for considering my request, I’m looking forward to your reply.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter qrobert

    (@qrobert)

    Hello,

    Since there were no respond, i tried to fix the issue.

    I didn’t try to solve the issue with pretty checkbox but worked on my previous suggestion to add <label>.

    I replaced the line 126 inside Locateandfilter/includes/class-locate-and-filter-tools.php with :
    $str = '<div id="la-filter-'.$term->term_id.'" class="LA_filters_'.$selector.' '.$term_image_class.' "><label><input class="filter_term_'.$selector.'" type="'.$selector.'" id="'.$name.'" name="'.$name.'[]" value="'.$term->term_id.'" '.$status.'>'.$term_image.'<span class="filter_term_name">'.$term->name.'</span></label></div>';

    Just wrapped <input> and <span> inside <label> and now the text is clickable.

Viewing 1 replies (of 1 total)
  • The topic ‘Issue Pretty Checkbox’ is closed to new replies.