I’m constantly searching for this code snippet, so why not supply it myself:
1 2 3 4 5 6 |
(function($) { // $ Works! You can test it with next line if you like // console.log($); })( jQuery ); |
Source of this code when I search always seems to be: https://digwp.com/2011/09/using-instead-of-jquery-in-wordpress/
That link also contains how to enqueue scripts and css files as well as other handy stuff.
No Comment