I've been working on localhost and everything looks fine but then when I uploaded my Wordpress theme online, all of the jQuery plugin functions are undefined!
One solution that worked (which I haven't tested a lot so I still don't know if it will work in the long run) is to import the javascript file from the plugin's main website or github page. I don't really prefer this "solution."
Another is the solution here but I haven't tested this a lot also. My issue here is I've used jQuery in another theme and everything works using just $
, but in my new theme it doesn't work with $
and so I have to use $j
instead. It's just that I'm very used to using just $
.
Can someone explain this weird phenomenon? Thank you! :)
$
for jQuery is not supported in WordPress.