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

Reply To: "multiselect" without search

#33789
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

Well, it might be possible via a a small custom javascript code.

Try adding this code to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.

add_action("wp_footer", "wp_footer_add_asp_script", 9999);
function wp_footer_add_asp_script() {
	?>
	<script>
	document.querySelectorAll('.asp_select2-search__field').forEach(function(el) {
		el.disabled = true;
	});
	</script>
	<?php
}

This will disable the search input on the multiselect alltogether, if all goes well.