This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

the plugin gives jQuery errors on local sever

Home Forums Product Support Forums Ajax Search Pro for WordPress Support the plugin gives jQuery errors on local sever

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #30632
    Loot70Loot70
    Participant

    any ideas? it makes my jquery nav menu not function on my localhost wamp server and my live website. I know it’s not my jquery nav menu code because if I disable the ajax search pro plugin my jquery nav menu works again.

    • This topic was modified 5 years, 5 months ago by Loot70Loot70.
    • This topic was modified 5 years, 5 months ago by Loot70Loot70.
    • This topic was modified 5 years, 5 months ago by Loot70Loot70.
    #30635
    Loot70Loot70
    Participant

    and on my live server too

    #30637
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Thank you for the details!

    I checked the URL, and I noticed 2 separate jQuery enqueues in the source. One is at the header, enqueued by WordPress, which is perfectly correct. But there is another one, on the bottom of the page: https://i.imgur.com/ELJZUVm.png
    That is causing the issues. Using multiple jQuery instances within the same scope is not going to work correctly, as the latter one will override every extension loaded to the first instance.
    If you remove the second jquery from the bottom of the page, it will resolve the issue.

    #30653
    Loot70Loot70
    Participant

    removing<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> did not work on my wamp server?
    My jquery nav menu does not function still

    • This reply was modified 5 years, 5 months ago by Loot70Loot70.
    #30656
    Loot70Loot70
    Participant

    I think I know the problem now.
    thank you

    #30663
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You are welcome!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.