ISOtopic without js

This topic contains 10 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 7 years, 2 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #11678
    therevolver
    therevolver
    Participant

    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

    #11682
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #11691
    therevolver
    therevolver
    Participant
    You cannot access this content.
    #11694
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Well, 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 :)


    #11695
    therevolver
    therevolver
    Participant

    Yeah 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

    #11696
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    I’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.png

    I 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 :)


    #11699
    therevolver
    therevolver
    Participant

    There we go! Much better, thanks for that

    #11850
    therevolver
    therevolver
    Participant

    I 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

    #11851
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #11853
    therevolver
    therevolver
    Participant

    Awesome! Works perfectly

    #11854
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘ISOtopic without js’ is closed to new replies.