I connect scripts via function.php
function wp_add_scripts(){ wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', ['jquery']); wp_enqueue_script( 'loadport', get_template_directory_uri() . '/js/loadport.js', ['jquery']); wp_enqueue_script( 'materialize', get_template_directory_uri() . '/js/materialize.min.js', ['jquery'] ); wp_enqueue_script( 'myjs', get_template_directory_uri() . '/js/myjs.js', ['jquery'] ); // wp_enqueue_script( 'json', get_template_directory_uri() . '/js/portfolio.json', ['jquery']); }add_action('wp_enqueue_scripts', 'wp_add_scripts'); function jquery_init() { if (!is_admin()) { wp_enqueue_script('jquery'); }}add_action('wp_enqueue_scripts', 'jquery_init');' Scripts are connected like normal
<script type='text/javascript' src='/wp-includes/js/jquery/jquery.js?ver=1.12.4'></script> But at the same time, an error is generated and the scripts do not work at all. I can not understand why. (immediately above the html code with the included scripts) 