Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › We would like to pay for customization › Reply To: We would like to pay for customization
The issue is when you try the domain without the www, but the requests are referring back to non-www version. Check the error console: https://i.imgur.com/tCNWHQN.png
I have tried on mobile devices and desktop browser as well, but only the http://www... version is working. You might need to set a .htaccess rule or a DNS policy to either redirect to the www subdomain version at all times or vice-versa.
It is not permitted to make ajax requests, nor any other ones from subdomains to TLD: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
The easiest solution (this is what I’m using) is to redirect everything to www via .htaccess.
Also, you can allow the search to accept empty phrases:
1. Put this function into the functions.php file in your active theme directory. It’s located in wp-content/themes/theme-name/functions.php
add_filter("asp_final_phrases", "asp_add_empty_phrase", 1, 1);
function asp_add_empty_phrase($phrases_array) {
if ( empty( $phrases_array ) )
return array("");
return $phrases_array;
}
2. Allow the plugin to trigger the search with 0 characters entered and triggering when facet changes: https://wp-dreams.com/wp-content/uploads/2016/01/23/admin/7402/admin/kb_asp_css2.png?8a
Best,Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)