• Resolved sanieh

    (@sanieh)


    Hi there.

    The plugin works perfectly but unfortunately there seems to be a conflict between it and my custom jQuery code. If the plugin is deactivated every jQuery functionality runs perfectly. But if it is activated, my custom jQuery code doesn’t work.

    Any ideas what I have to do now?

    Thank you so much and best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author slickremix

    (@slickremix)

    Thanks for hitting up us up. Usually we see this happen if you are not enqueuing your jquery. If you simply add a url to your theme for a jquery file and it is not enqueued via php then our plugin does not know to not load the lastest jquery that ships with wordpress. It’s best practice to stay up with the latest jquery so as you update or add other plugins too overtime you do not run into more conflicts.

    Check this page out if you haven’t already, it shows you all the things that ship with WordPress and how you can call them. https://developer.wordpress.org/reference/functions/wp_enqueue_script/

    You could for a quick test try removing your jquery library call and see if everything still works when our plugin is active… that would let you know you can just enqueue the latest jquery from wp. Hope that helps.

    Spencer

    Thread Starter sanieh

    (@sanieh)

    Thanks a lot. Your solution worked perfectly. I’ve registered my script, but forget to enqueuing.

    Plugin Author slickremix

    (@slickremix)

    Awesome, really glad to hear that helped, and thanks for using our plugin. Have a great rest of your week!

    Spencer

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Plugin conflict with jQuery’ is closed to new replies.