The JS file is being loaded at the header,right after the jquery file, I can see that. I think it has to be a problem with the jQuery scope, which is kind of weird in WordPress. But I’ve tried every possible solution that I found on the internet, and none worked.
I’ve tried using var $ = jQuery.noConflict(); and then
but it doesnt work. Maybe I have to change the plugin file?
The plugin file defines the function like