Conflict with jquery.min.js

Forums › Forums › Search & Filter Pro › Conflict with jquery.min.js

Viewing 7 posts – 1 through 7 (of 7 total)
  • Anonymous
    #36831

    Hello,

    I use a custom theme for wordpress,
    your plugins works very well with my theme.

    But when I use jquery -> jquery.min.js

    there is a bug.

    I tried with the themes by default wordpress, it works, I have no problem with other puglins

    The problem just when I put in my file footer.php

    jquery.min.js

    search engine, do not load the information

    do you have an idea?

    Thank you

    Ross Moderator
    #36843

    Hi there

    Why are you adding a jquery.min.js to your site? WordPress comes with this automatically.

    Thanks

    Anonymous
    #36850
    This reply has been marked as private.
    Ross Moderator
    #37031

    Hey there

    If I take a look now the search is working?

    On any website, loading a second copy of jQuery is an issue, and is totally bad practice.

    WordPress automatically loads its own copy (which you can find) on line 83 on your site:

    <script type='text/javascript' src='http://www.example.com/wp-includes/js/jquery/jquery.js?ver=1.11.3'></script>

    I don’t know what the issue is with teh other other jQuery, but like I say, this is prone to issues on WP unless you know what you are doing.

    WP has tons of javascript, that is loaded using dependencies – https://developer.wordpress.org/reference/functions/wp_enqueue_script/ – plugins use these dependencies to load at the correct point in the code.

    I’m assuming the way you are trying to do things does not preserve the dependencies in WP.

    Thanks

    Anonymous
    #37051

    hello, now it works better, it’s just a story of priority and dependencies as you said.

    I always try to optimize this.

    Thank you and have nice day

    ps: it is possible to change the url by example.com. I’ll be very happy. thank you very much

    Anonymous
    #37052

    hello, now it works better, it’s just a story of priority and dependencies as you said.

    I always try to optimize this

    ps: it is possible to change the url by example.com. I’ll be very happy.

    thank you very much

    Ross Moderator
    #37059

    Ooops! Done 🙂

Viewing 7 posts – 1 through 7 (of 7 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.