Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Initial Setup › Reply To: Initial Setup
Hi,
Thank you for the details!
1. Make sure the search results override feature is enabled, that should resolve the issue
2. That should not happen whatsoever, all styles generated by the plugin are exclusively applied to the search components and nothing else. I will have to take a direct look at what exactly changed to be able to tell if there is any connection.
3. & 4. Make sure to try the automatic replacement feature. If the theme uses the recommended get_search_form() method, then it will work. Otherwise you may have to ask the theme developer how to replace those manually with the search plugin shortcode.
4.1 Yes, there is an infinite scroll feature for the live.
5. I suspect it might be related to the length of the keyword. Check if the minimum keyword lenght is set to 1: https://i.imgur.com/ipr7MQN.png
6. If only the titles are searched, then it is redundant, I would not change anything there.
7. First, make sure to set the search trigger from 0 to at least 1 input characters here: https://i.imgur.com/QcuRIOg.png
That will prevent the search from triggering unless that number of characters were entered. It will not close the results list, when it’s empty – there is no option for that.
I found an older topic, where someone requested something similar, and I suggested a custom code for him to trigger that behavior. 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_asp_custom_script_close', 99999);
function wp_footer_asp_custom_script_close() {
?>
<script>
jQuery(function($){
jQuery('input.orig').on('keyup', function(e) {
if (jQuery(this).val() == '' ) {
ASP.api(jQuery(this).closest('.asp_w').data('id'), 'closeResults');
}
});
jQuery('.asp_m').on('asp_search_end', function(e, id, instance){
if ( jQuery('.asp_m_' + id + '_' + instance + ' input.orig').val() == '' ) {
jQuery('.asp_r_' + id + '_' + instance).addClass('hiddend');
} else {
jQuery('.asp_r_' + id + '_' + instance).removeClass('hiddend');
}
});
});
</script>
<?php
}