Why can’t we use “$” instead if jQuery in wordpress? Usually “$” is the alternative of jQuery right? But in WordPress it shows “$” is not a function. I dont get why is that so. Can anyone explain?
Leave a Reply
You must be logged in to post a comment.
Have a look at tip 5 in this web page: 5 Tips for using jquery with wordpress:
I hope that helps.
Source: Using â$â instead of âjQueryâ in WordPress
jQuery(...)
should be used instead of$(...)
Edit —-
sorry, i misread your question.
It depends on the jquery implementation of your wordpress version.
I have seen wordpress sites that allowed the usage of
$
before, but i don’t really know what it depends on.