Comments jakegroup started the conversationApril 7, 2021 at 1:14pmHi I would like to add custom jquery to the theme. I found that I can add custom JS in the Advanced options, but what is the correct way to add Jquery code (jQuery prefix)?I tried the following, but none of them worked.jQuery( document ).ready(function() { console.log( "ready!" );});$( document ).ready(function() { console.log( "ready!" );});$j( document ).ready(function() { console.log( "ready!" );});Thanks, 7,092Oliver repliedApril 7, 2021 at 1:18pmHi,Example: (function($){ $(function(){ console.log( "ready!" ); })})(jQuery); Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. Regards, Oliver Sign in to reply ...
Hi I would like to add custom jquery to the theme. I found that I can add custom JS in the Advanced options, but what is the correct way to add Jquery code (jQuery prefix)?
I tried the following, but none of them worked.
jQuery( document ).ready(function() {
console.log( "ready!" );
});
$( document ).ready(function() {
console.log( "ready!" );
});
$j( document ).ready(function() {
console.log( "ready!" );
});
Thanks,
Hi,
Example:
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver