Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › ISOtopic without js
This topic contains 10 replies, has 2 voices, and was last updated by Ernest Marcinko 7 years, 2 months ago.
- AuthorPosts
- January 22, 2017 at 1:03 pm #11678
Basically I’m wondering if its possible to just not use the isotope js? I don’t want any of the animations etc, and when I turned it off it seemed to work fine however it just kept coming up with the warning, turn on isotope js
January 23, 2017 at 1:42 pm #11682Hi,
Well, the error message script is kind of hard coded, and it’s not possible to override it without actually touching the code.
If you wish to do that, try these steps:
1. Change the script source to non-minified on the Compatibility Settings submenu: https://i.imgur.com/qgU6RJX.png
2. Then open up the wp-content\plugins\ajax-search-pro\js\nomin\jquery.ajaxsearchpro.js file on your server
3. Within that file scroll to line 47, within the function raiseError, which should be:var $this = this;
4. Change that line to:
return false;
Save the file and clear your cache (both server side and browser). The alert messages should not appear after that.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 23, 2017 at 9:42 pm #11691You cannot access this content.January 24, 2017 at 9:16 am #11694Well, the script controls the isotope effects (item ordering, filtering based on pagination etc..), so basically yes, but I cannot guarantee it will work without it correctly.
The plugin uses a separate search process, but it might be possible to change it to a very similar configuration to get almost the same results at the default search:
1. The WordPress core search only returns posts and pages, so make sure that on the General Options -> Sources panel no other post types are selected: https://i.imgur.com/C3ZBClU.png
2. The rest of that same panel should be configured as this: https://i.imgur.com/kvD0vbD.png
3. The keyword logic and the exact matching should be the default, like so: https://i.imgur.com/5ebJQwS.png
4. The ordering should be set to ‘Date descending’ and ‘Title descending’ on the General Options -> Ordering panel: https://i.imgur.com/SJ25OEd.png
5. And finally, the relevance must be turned off on the Relevance Options -> Regular engine panel: https://i.imgur.com/y0baPsT.png
If nothing else was changed, no other sources were selected, then this should give more similar results to the default wordpress search.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 24, 2017 at 9:41 am #11695Yeah I made sure all of that is correct, but when I turn off relevance it seems to only return results based on like the last word and showing up almost unrelated results
January 24, 2017 at 10:05 am #11696I’ve looked up the latest version of the wp search query, it looks like it was changed a bit since the last time.
It appears to be using and ‘and’ type of logic (so all keywords must match) and there is some relevance as well. In this case try:
– On the General Options -> Behavior panel changing the keyword logic to ‘AND’ instead of the ‘OR’: https://i.imgur.com/jVkGh7F.png
– On the Ordering panel changing it back to the default: https://i.imgur.com/4XZ5olI.pngI tried a few queries on my test environment, and got very similar results with this configuration.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 24, 2017 at 10:11 am #11699There we go! Much better, thanks for that
February 8, 2017 at 8:26 am #11850I do have another question, I was wondering how do I make the image used in the search results a clickable link. I have selected the option, make entire area clickable, however at the moment it is just the text that is
February 8, 2017 at 9:54 am #11851Hi,
If the option is enabled it should work. It might indicate a javascript issue there, but since I can’t check, I’m not sure.
Anyways, you could try forcing redirection with a custom javascript code:
Place this into the functions.php file in your theme directory, and let’s hope it works.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
February 8, 2017 at 10:29 am #11853Awesome! Works perfectly
February 8, 2017 at 10:55 am #11854You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
The topic ‘ISOtopic without js’ is closed to new replies.