Important:
This support area is for Kalium 3 users only.
Support for Kalium 4 has moved to our new platform at support.laborator.co.
If you’re using Kalium 4, please create a new account there using your email and license key. A password will be sent to you automatically.
Hi, I have a question about adding JavaScript via Theme Options.
If I have script like below, is there some format I have to follow when I paste it for it to work? Like <script> or jQuery or anything? (This is my first time to try using js). And does it matter if it goes in Header or Footer?
Thank you!
$('#fragrance').on('change', function(){
$('body').addClass('class-1');
});
Hi there,
If you want to add jQuery then this is the method to add it:
<script> jQuery( document ).ready( function( $ ) { $( '#fragrance' ).on( 'change', function() { $( 'body' ).addClass( 'class-1' ); } ); } ); </script>Best regards,
Laborator Team
Fantastic, thanks so much!