Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Not work return button in search engine chrome and opera. › Reply To: Not work return button in search engine chrome and opera.
February 6, 2020 at 2:11 pm
#25706
Keymaster
Hi,
I think I can suggest you a custom code that may do this. First, make sure to update to the latest release 4.17.6.
Try adding this custom code to the functions.php in your theme/child theme directory. Before editing, please make sure to have a full site back-up just in case!
add_action('wp_footer', 'asp_custom_footer_script');
function asp_custom_footer_script() {
?>
<script>
jQuery(function($){
$('.proclose').on('mousedown touchend', function(){
var id = $(this).closest('.asp_w').data('id');
var instance = $(this).closest('.asp_w').data('instance');
setTimeout(function(){
console.log(id, instance);
ASP.api(id, instance, 'searchFor', '');
}, 200);
});
});
</script>
<?php
}