Custom JQuery script in page template won’t work [duplicate]
The version of jQuery distributed with WP runs in noConflict() mode (meaning that $ is not bound to the jQuery object). Thus, you should do: <script type=”text/javascript”> jQuery( document ).ready(function() { console.log( “ready!” ); }); </script> or <script type=”text/javascript”> (function ($) { $( document ).ready(function() { console.log( “ready!” ); }); })(jQuery) ; </script>