Uncaught ReferenceError: jQuery is not defined
-
Hi there! I’m usign this code…
add_action( 'wp_head', function () { ?> <script> jQuery(document).ready(function() { // xxxxxx }); </script> <?php } ); add_action( 'wp_enqueue_script', function () { wp_enqueue_script( 'jquery' ); } );
posted here…
https://www.ads-software.com/support/topic/add-jquery-possible/
but I get this console error:
Uncaught ReferenceError: jQuery is not defined
How can I solve it? I just want to use a very simple jQuery function.
Thank you! ??
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Uncaught ReferenceError: jQuery is not defined’ is closed to new replies.