sirxemic / jquery.ripples

Add a water ripple effect to your background using WebGL.
https://sirxemic.github.io/jquery.ripples/
MIT License
1.06k stars 416 forks source link

$(...).ripples is not a function... #64

Open jordan-webdev opened 4 years ago

jordan-webdev commented 4 years ago

I don't know what I'm doing wrong here...this seems like such a basic issue. Trying to get this working on my WordPress site. I enqueued like all other scripts, passed jQuery through the array of dependencies...what could I possibly be doing wrong? It has to be something simple...

Tragio commented 4 years ago

Try to replace $ with jQuery Wordpress uses jQuery no-conflict mode https://api.jquery.com/jquery.noconflict/

Edit: You also can add this var $ = jQuery; to the .js