Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Couple of questions/problems with setup › Reply To: Couple of questions/problems with setup
February 25, 2020 at 3:51 pm
#25992
Keymaster
4. It could be actually, but it might be a bit problematic,as accidentally leaving the area will immediately close it. It’s worth a try though. Change the code to this variation:
add_action('wp_footer', 'asp_add_to_footer');
function asp_add_to_footer() {
?>
<script>
jQuery(function($){
var t;
$('.prosettings').on('hover', function(){
var id = $(this).closest('.asp_m').data('id');
var instance = $(this).closest('.asp_m').data('instance');
ASP.api(id, instance, 'toggleSettings', 'show');
clearTimeout(t);
});
$('.asp_sb, .asp_s').on('mouseenter', function(){
clearTimeout(t);
});
$('.asp_sb, .asp_s').on('mouseleave', function(){
clearTimeout(t);
var _this = this;
t = setTimeout(function(){
var id = $(_this).closest('.asp_w').data('id');
var instance = $(_this).closest('.asp_w').data('instance');
console.log(id, instance);
ASP.api(id, instance, 'toggleSettings', 'hide');
}, 500);
});
});
</script>
<?php
}
6. Yes, of course, the issue will be patched.
11. Have these been excluded under the General Options -> Sources 2 panel? Because on the Advanced Options panel the exclusions are for post type results that are in relation with the taxonomy terms.