Home>
Currently, the site created in HTML has been changed to the wordpress site.
In HTML, an error will occur if the javascript that runs is set to wordpress.
All the following errors are displayed.
Uncaught ReferenceError: jQuery is not defined
Applicable source code
<script src = "http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type = 'text/javascript' src = '●●●/js/jquery.inview.min.js'></script>
<script type = 'text/javascript' src = '●●●/js/function.js'></script>
<script type = 'text/javascript' src = '●●●/js/sp-menu.js'></script>
<script type = 'text/javascript' src = '●●●/js/scroll.js'></script>
<script type = 'text/javascript' src = '●●●/js/wideslider.js'></script>
<script type = 'text/javascript' src = '●●●/js/slick.min.js'></script>
<script type = 'text/javascript' src = '●●●/js/admin-bar.min.js? ver = 5.2.3'></script>
<script type = 'text/javascript' src = '●●●/js/wp-embed.min.js? ver = 5.2.3'></script>
-Change all javascript $s to jQuery
・ Window.addEventListener (Change to 'DOMContentLoaded', function () {
I tried to change the reading order and write it in header.php and function.php, but it still does not work with an error.
Thanks for your professorship.
-
Answer # 1
Related articles
- javascript - uncaught referenceerror: category is not defined
- javascript - uncaught reference error in js: $is not defined error
- i want to write the jquery part in javascript
- i don't know how to decorate the selected text with javascript (jquery)
- jquery → javascript replacement
- javascript - is it possible to start jquery (modal display) from the replaced html?
- javascript - manual input using jquery timepicker
- javascript - jquery html creation
- javascript - dynamically change the value of transform scale by jquery pinch operation to scale elements
- javascript - jquery doesn't work on heroku
- i don't know how to get the text in the range selection with javascript (jquery)
- javascript - jquery fade-in/out animation implementation
- javascript - jquery doesn't work with loading scrit tag in bootstrap
- javascript - view limit with jquery cookie
- javascript - i want to output jquery html, but i can't use ruby (each statement)
- javascript - jquery i want to select a specific element
- javascript - click an image to move to the next image jquery (mail order site product details screen)
- javascript - iterative processing does not work with jquery
- javascript - [jquery fullcalendar] dayclick doesn't work
- javascript - i can't scroll the screen with jquery
Related questions
- javascript : Setting a cookie via wp_ajax_nopriv (WordPress)
- javascript : Redirect to WordPress (REST API)
- javascript : We'll be happy with it, let's go on and on. Please, contact us, please, and then Would you like to know what to do?
- javascript : SyntaxError: Identifier 'descrBlock' has already been declared
- javascript : Accordion on WordPress without a plugin, why doesn't it work?
In WP, read js using basic wp_enqueue_script
Please use jQuery built in WP
Plug-ins that use jQuery may cause malfunctions
Unable to read http js file from https site
You can read https from http so you can use basic https
Please check that much