I am trying to run a Javascript code on my website with the latest version of Bricks. If I run the code in the console, it works perfectly. But as soon as I try to add it to the scripts section in Bricks settings stop working: Uncaught ReferenceError: jQuery is not defined
What is the best practice to run jQuery codes with Bricks 1.4 (In this version the development team removed jQuery from the Front end)? Thanks!
Can someone clarify please, so it’s not enough to manually enter this code from above as a snippet, but afterwards we also have to phrase code differently? For example I can’t just write: " jQuery(‘.button’).click();" so that the button class is clicked after a page load? I should add something more?
To my limited knowlegde that is because in the early days people would write all sort of plugins for jQuery that conflicted with another. So to make this easier WP started to use jQuery not in ‘base’ but in no-conflict mode. And I think this is now ‘standard’ (but someone more knowledgeable on this topic educate me please if thats incorrect).