Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Wordpress installation failed

modjo38 free asked 4 years ago


Hi !

I'm trying to install MDB with wordpress by following the tutorial on this site. But i'm facing issues in my firefox console.

This is what i can see in my console :

enter image description here

And here is my functions.php code :

enter image description here

Can you help me to correctly install mdb in wordpress please ?

Thanks for your help !

Jérémie


modjo38 free answered 4 years ago


Thank you for you answer Grzegorz.Indeed, i did not followed the wordpress tutorial in its entirety. I already have a theme named Divi and i just needed to integrate mdb component.

The error messages in my previous post seem to be linked to Divi, so do not consider them anymore ;)

The issue i'm now facing is "$ is not a function" as you can see on this new capture :enter image description here

My functions.php :enter image description here

I specify that the error message appears since i try to add datatables components.

Is this error due to no-conflict-jquery wordpress use ?I'm actually using default jquery installed in wordpress.

Thank you !


Grzegorz Bujański staff commented 4 years ago

Yes, this could actually be the reason why this error occurs. After using jQuery.noConflict() $ is no longer an alias for jQuery. You can find more about it here: https://api.jquery.com/jQuery.noConflict/


Grzegorz Bujański staff answered 4 years ago


Hi.

It seems that the currently set theme is called divi, and according to the tutorial, it should be called MDB Blog (unless you followed a different tutorial than I think). Have you given a different name to the theme? Maybe you don't have the right theme currently set? Was the custom.unified.js file created by you?



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.1
  • Device: Laptop
  • Browser: Firefox
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No