Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search only works when logged into WordPress
This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko 6 years, 11 months ago.
- AuthorPosts
- October 5, 2017 at 8:47 pm #15024
The search feature only works when you’re logged into WordPress.
When you’re not logged in, it doesn’t do anything.
October 5, 2017 at 9:42 pm #15025Hi,
It seems to be working for me, please check this video: https://youtu.be/qlpL3hWjO44
Make sure you have your browser cache deleted, and that there are no browser extensions active that could block any XHR ajax requests. It can also be a malformed .htaccess rule, but that is very unlikely, given that it works on my end.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 5, 2017 at 9:47 pm #15026Hi There, it’s working for me in Chrome now, logged out of WordPress. But it’s not working in Firefox or Safari – and I don’t have any extensions installed there.
October 5, 2017 at 10:13 pm #15027Hi,
Interestingly, the autcomplete event and the facet change events are working, but whenever I type it does not respond.
This could mean that the search input keyup event is very likely overwritten or blocked by a 3rd party scritp – as I’m not able to recreate the issue on my local environment. The error console on your site looks okay, there are a few minor warnings from other scripts, but nothing interesting or related.The first thing you should try is to change the javascript compatibility mode to minified scoped: https://i.imgur.com/oqzmdFP.png
After this change you will have to clear all layers of cache, including the browser cache, as well as reloading the page by clicking CTRL(command) + SHIFT + R.If this does not work, then the keyup event will have to be re-attached in some way. I’ve constructed a small code snippet that might be able to help.
Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!Make sure to clear the site cache after this as well.
If you need help with this, just add temporary FTP access and I will do it for you. I hope this helps!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 6, 2017 at 7:49 pm #15041That fixed it! Thank you so much! <3
October 7, 2017 at 9:11 am #15047You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.