This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Frontend>Categories> STOP auto select child terms when parents are selected

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Frontend>Categories> STOP auto select child terms when parents are selected Reply To: Frontend>Categories> STOP auto select child terms when parents are selected

#31410
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

I’m afraid this is not possible either. This is hard coded into the script files, which I do not recommend changing, as any of the future updates will simply override them and revert back any changes.

We are in a middle of a huge rework on the filters system, I could add a feature request to turn off this behavior.

You can try a custom code, although I don’t know if this will work in all of the cases:

add_action('wp_footer', 'asp_add_menu_stop_checkbox_parent_child');
function asp_add_menu_stop_checkbox_parent_child() {
  ?>
  <script>
	jQuery(function($){
		$('*[data-lvl]').data('lvl', 'null');
	});
  </script>
  <?php
}

This should remove the attribute which is used to recongize the parent-child structures.