-
-
Save sheabunge/5218217 to your computer and use it in GitHub Desktop.
Demonstrates how to properly load jQuery within the context of WordPress-targeted JavaScript so that you don't have to worry about using things such as `noConflict` or creating your own reference to the jQuery function.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function( $ ) { | |
"use strict"; | |
$(function() { | |
// Your code here | |
}); | |
}(jQuery)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment