Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › searching for term which does not exist breaks system › Reply To: searching for term which does not exist breaks system
July 25, 2022 at 2:11 pm
#38549
Keymaster
All right, so it was just something with the number of elements.
Well, I think it might be possible, but only via custom 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', 'asp_footer_custom_script', 999999);
function asp_footer_custom_script() {
?>
<script>
jQuery(function($){
$('.prosettings').one('click', function(){
$('.asp_option_cat').on('click', function(){
setTimeout(function(){
location.href = location.href;
}, 100);
});
});
});
</script>
<?php
}
This will trigger a page reload after changing a taxonomy setting.