Want to use $ for jquery instead of tjq

Closed
Travelo - Travel, Tour Booking HTML5 Template Travelo - Travel, Tour Booking HTML5 Template February 17, 2019
Login to reply
Kelly R Support Agent
4 years ago
Resolved.
Denzil C
5 years ago

Thank you very much for your advice.

Much appreciated.

Kind regards,

Denzil

Kelly R Support Agent
5 years ago

Hi,

You can not use $ in theme-scripts.js file.

Please create a js file and add your codes in it.

In the header of this file, please put following js code.

$ = jQuery.noConflict();

Then $ will work in the file.

Regards, C-Themes

Denzil C
5 years ago

Good day,

Please advise how I can use $ for jquery instead of tjq in theme-scripts.js.

Whenever I add a new jquery plugin for use on a page, it throws up the following error:

Uncaught ReferenceError: $ is not defined

Please advise how to resolve. Can theme-scripts.js be converted to use $ instead of tjq?

Thank you.