Topic: MDB scripts conflict with WordPress
forester pro asked 8 years ago
$
, which might not be defined globally in WordPress environment. To resolve this issue i've temporary wrapped whole mdb.js
contents into (function ($) { /* your scripts here */ }(jQuery));
. Do you have any other suggestions?
Kind regards!
Artem
Reland Pigte free answered 7 years ago
Michal Szymanski staff answered 8 years ago
Daniel pro answered 8 years ago
Dawid Adach pro answered 8 years ago
Dawid Adach pro answered 8 years ago
forester pro answered 8 years ago
$
is not defined. So, i have to modify mdb.js
and wrap its contents into construction above, to ensure that $
is defined and means jQuery
. But i believe that there should be a better solution, without modifing your scripts. That's why i ask.
Regards!
Artem
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- ForumUser: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: Yes
- Provided link: No