Hopefully you can help me clear this up. I’m using a few jQuery scripts on my site (one being leanModal, which I’ve used several times in the past without any problems). The site I’m working on (using WP) was working fine, until a few hours ago the modal stopped working. Looking at the error console it states:
$ is not a function
$("a#go").leanModal();
$ is not a function
$(function() {
Both relate to leanModal. Any ideas why suddenly such an error would occur?
Site for reference is here (http://richgc.com/freelance/industry/) and the modal is fired by clicking ‘Information’.
It looks like you override the
$in some way.$isundefinedjQueryreturn a jQuery object. (function (a,b){return new e.fn.init(a,b,h)})As @Rocket found in your’s source code:
You use
jQuery.noConflict();hereWhich free the
$varibale to it’s previous state (undefined)Read
noConflictdocs: