WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use some external plugins (not wordpress plugins), that use '$', and it's very convenient for me to cancel noConflict mode, by adding this line
But I guess they invented noConflict mode not for nothing.
The question is how much have to worry about it. And is really a problem to use $=jQuery?

share|improve this question
I would question the quality of any plugin that relied on $ to function correctly. The jQuery docs are pretty clear on the subject and failing to follow this very simple convention is a huge red flag to me. – Milo Jun 1 '13 at 23:38
up vote 4 down vote accepted

The problem with the $ alias is that a number of libraries quite puzzlingly decided to use the same variable as an alias. If two libraries try to use the same variable, one or the other will win and anything dependent on the other one will break.

If you are only using jQuery, and never anything else, it should be fine to use the $ but you should not ever do that except for a site that you personally maintain. I suspect you will regret it if you ever want to use another library, though. Using that hack in a plugin or a theme would be very bad form.

What you are doing is only marginally easier than this though (from the jQuery.noConflict docs):

(function($) {
  $(function() {
    // more code using $ as alias to jQuery

But then I don't know what kind of "plugins but not WordPress Plugins" you are talking about, or whether that is even relevant.



share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.