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

This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 1 year, 8 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #30632
    Loot70
    Loot70
    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 1 year, 8 months ago by Loot70 Loot70.
    • This topic was modified 1 year, 8 months ago by Loot70 Loot70.
    • This topic was modified 1 year, 8 months ago by Loot70 Loot70.
    #30635
    Loot70
    Loot70
    Participant

    and on my live server too

    #30637
    Ernest Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

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


    #30653
    Loot70
    Loot70
    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 1 year, 8 months ago by Loot70 Loot70.
    #30656
    Loot70
    Loot70
    Participant

    I think I know the problem now.
    thank you

    #30663
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    You are welcome!

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.