latest update causing js conflicts
after update the latest version causes some js to stop working. conflict issues.
Could you give me more detail please?
http://demo.rundiz.com/wordpress/ This site is using Bootstrap Basic v1.1.3 and WordPress 5.4.1 but have no problems. Console log show no errors and everything seems to working fine.
What is the URL that have conflict issues? I can inspect more detail from that URL.
It seems like a query conflict. We custom scripts and such that were working prior to the latest version and then the stop working and say jquery.example is not a function. Restoring to previous version of theme resolves the issue.
Sent from my iPhone
On May 18, 2020, at 7:43 AM, vee w, [email protected] wrote:
Could you give me more detail please?
http://demo.rundiz.com/wordpress/ This site is using Bootstrap Basic v1.1.3 and WordPress 5.4.1 but have no problems. Console log show no errors and everything seems to working fine.
What is the URL that have conflict issues? I can inspect more detail from that URL.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
This theme did nothing about jQuery except move them to the bottom in version 1.1.2 ( see commit https://github.com/Rundiz-WP/bootstrap-basic/commit/b6cf78b59ad2d56480b3b58266556d4c9d94ff41 )
When you enqueue your script make sure that you use correct function between get_template_directory_uri() or get_stylesheet_uri() depend on your usage. ( see this question https://stackoverflow.com/questions/31797203/whats-the-difference-between-get-stylesheet-directory-uri-and-get-template-di )
If you are using correct function but need your script to load after some script on this theme, set the priority argument to 11 or more (higher number is lower priority and load after). See document about this here ( https://developer.wordpress.org/reference/functions/add_action/ )
And when you enqueue your script, make sure that you added jquery in third argument. ( see document here https://developer.wordpress.org/reference/functions/wp_enqueue_script/ )
I hope that you can make it work with the latest version to use latest feature (and fix) from Bootstrap 3.
got it. that makes sense.
I will close this issue for now, if you still have problem with this please reply and I can re-open it again.