So I'm trying to add a class with jquery. Here is the code:
jQuery(document).ready(function($) {
$('body').addClass('scrollbar-dynamic');
});
I can confirm the script is loaded on frontend as it appears in source code. Plus all other javascript "1400 lines" works fine. The addClass jquery method is also used about 30 more times throughout the script. I'm also using the latest version of wordpress It's just this time it's not working. Here is a working js fiddle
Stuff like this just drives me crazy. Cheers for the help