Hello my first post i keep getting these two errors. Not sure if this is a question or a statement but i would check you make the call for the jquery script before you try to use it.
Uncaught Referenceerror Is Not Defined Error In Console
Jquery is not defined. The script wil initiate right but will not do anything as jqueryrelated products li does not find any elements. Jquery is not defined. Jquery is not defined. Since jquery plugin uses it throw referenceerror. So in this case you will encounter jquery is not defined error as the reference of the jquery library is after the code. Related products li do not exists.
I suspect that your copy of the jquery library is also in libjs and that youre just not getting it due to that incorrect path. Similarly showing the issue of this type for not defined jquery on your wordpress themes. Is not defined in jquery based application is that jquery plugin is included before jquery file. One of the most common javascript errors one can encounter in wordpress is. So lets try to find out the causes possible fixes and other details about this uncaught reference error of jquery in wordpress. Is not defined jquery is not defined the thing is that locally it works fine but when i upload.
Youre importing the jquery ui library from libjs but jquery itself from lib. It exists after page load however. So whenever you can check your console there are showing this. The markup for this selector is not on the page. Paul totzke mar 22 16 at 1652. In this case jquery is being loaded but its coming after another libraryscript that attempts to use jquery and expects it to be defined.
If the cdn jquery fails load it will almost certainly load fine from your own domain but youll also see the benefits of using a cdn hosted jquery for most of your users. It sounds like your loading it in the footer and calling things higher up the page. Is not defined if it doesnt find which is logical because jquery was not loaded until then. The order of the scripts is not correct. Jquery is not defined. 1 one of the most common reason of referenceerror.
Therefore you can add link multiple methods likewise directly use scripting language otherwise add enqueue wordpress default function. Below is an example of jquery being loaded after appjs which might contain references to jquery which has not been loaded.