digicorp / propeller

Propeller - Develop more, Code less. Propeller is a front-end responsive framework based on Google's Material Design Standards & Bootstrap.
http://propeller.in
MIT License
1.13k stars 141 forks source link

Uncaught TypeError: $ is not a function #39

Closed lidya1859 closed 6 years ago

lidya1859 commented 7 years ago

I found this error in console when I use it in my WordPress theme. Can you solve this please? Thank you.

piyush-digicorp commented 7 years ago

Hello,

This error comes generally when main jQuery library is missing in the code snippet.

Could you please elaborate how you are using propeller in your WordPress theme.

lidya1859 commented 7 years ago

The main jQuery library has been loaded. After several "googling" I found that the problem comes from $(document).ready. They said it makes conflict or something like that. So for now, I just added some code like this.

(function($){"use strict";$(document).ready( ... (jQuery.fn.removeClass);})(jQuery);

It works, but I don't know if that's okay or not.