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 2 years, 5 months ago.
- AuthorPosts
- December 11, 2020 at 12:40 am #30632
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.
December 11, 2020 at 3:01 am #30635and on my live server too
December 11, 2020 at 9:25 am #30637Hi,
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
Best,
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.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 11, 2020 at 4:01 pm #30653removing
<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 2 years, 5 months ago by
Loot70.
December 11, 2020 at 7:24 pm #30656I think I know the problem now.
thank youDecember 12, 2020 at 9:58 am #30663You are welcome!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
-
This reply was modified 2 years, 5 months ago by
- AuthorPosts
You must be logged in to reply to this topic.