Forums Forums Search & Filter Pro Filters is not working and shows ALL results

Tagged: 

Viewing 10 posts - 11 through 20 (of 21 total)
  • Trevor
    #50935

    I will need to log in again. I tried the credentials you sent, but they do not work now?

    Anonymous
    #51021
    This reply has been marked as private.
    Trevor
    #51138
    This reply has been marked as private.
    Anonymous
    #51155
    This reply has been marked as private.
    Trevor
    #51159

    Sorry, you can remove that last defer, I got it from my site code.

    Whatever you did, it is not loading those HTML snippets into the page (you can view the page source and see that they are not there).

    You will need to ask the author of the theme how to add these so that they load in the header.

    Anonymous
    #51169

    Well, at the time you checked, we just had it out again. Now the code is in there but doesn’t work.

    Trevor
    #51173

    Ah, I see. In your page I can see JQuery being loaded in the footer (something that is not normally done in a WordPress theme as doing so will break a lot of jQuery scripts, including ours). It is being loaded with this line:

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    

    I am assuming that as it loads after our scripts, this causes an error, as our script is dependent on jQuery. Either jQuery needs loading before our script, or our script needs loading after the jQuery script. I can see this because in the page inspector (in Chrome or whatever browser you use), in the console, I can see this error:

    ReferenceError: JQuery is not defined

    and it refers to our script.

    This type of issue may happen again as the theme is hand written and will need a lot of maintenance in the future. For example, I can see you have yet to upgrade to WP 4.5.3.

    It is why so many users choose a pre-made theme or theme framework for their sites.

    Anonymous
    #51201
    This reply has been marked as private.
    Trevor
    #51213

    As I said, it has to be loaded after jQuery loads.

    I assume you paid a developer to make the site for you? Did you ask him/her to make it hand coded? It seems a curious choice when there are theme frameworks available, at least one of which could have made this site without much difficulty.

    If you have access to the server file manager and look inside the wp-content/themes folder, find the folder named after the theme, is there a file in there named functions.php?

    Anonymous
    #51259

    Hi Trevor,

    IT WORKS! The important hint was to load the script after jQuery loads. I placed

    <script type='text/javascript' src='.../wp-content/plugins/search-filter-pro/public/assets/js/search-filter-build.min.js'></script>

    in the footer instead of the header.

    MANY THANKS for the GREAT support.

    We will by more licenses soon, as it is a great plugin with lots of great opportunities!

    Cheers, Thorsten

Viewing 10 posts - 11 through 20 (of 21 total)