Hello my first post i keep getting these two errors. Is not defined if it doesnt find which is logical because jquery was not loaded until then.
Uncaught Referenceerror Is Not Defined
Jquery is not defined. One of the most common javascript errors one can encounter in wordpress is. Youre importing the jquery ui library from libjs but jquery itself from lib. The markup for this selector is not on the page. 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. The order of the scripts is not correct. Related products li do not exists.
In this case jquery is being loaded but its coming after another libraryscript that attempts to use jquery and expects it to be defined. Jquery is not defined. So whenever you can check your console there are showing this. Jquery is not defined. 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.
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. 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. Is not defined jquery is not defined the thing is that locally it works fine but when i upload. Since jquery plugin uses it throw referenceerror. It exists after page load however. Similarly showing the issue of this type for not defined jquery on your wordpress themes.
So in this case you will encounter jquery is not defined error as the reference of the jquery library is after the code. Jquery is not defined. The script wil initiate right but will not do anything as jqueryrelated products li does not find any elements. Is not defined in jquery based application is that jquery plugin is included before jquery file. 1 one of the most common reason of referenceerror. It sounds like your loading it in the footer and calling things higher up the page.
Paul totzke mar 22 16 at 1652. So lets try to find out the causes possible fixes and other details about this uncaught reference error of jquery in wordpress.