Topic: MDB scripts conflict with WordPress
$
, 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 Dawid Adach pro answered 9 years ago
forester pro answered 9 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 Dawid Adach pro answered 9 years ago
forester pro answered 9 years ago
Dawid Adach pro answered 9 years ago
Daniel pro answered 9 years ago
Michal Szymanski staff pro premium priority answered 9 years ago
Reland Pigte answered 8 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No