How do i resolve sscript not loading in wordpress?
-
I am developing a theme from scratch and having error in my enqueue_script when i use moxilla console to preview it. Here below is my wp_enqueue and below my error message
<body class="home blog logged-in admi…hfeed customize-support"> search.js:6:13 GEThttps://localhost/sovadigitals.com/wp-content/themes/sova-digitals/js/bootstrap.js?ver=5.9.2 [HTTP/1.1 404 Not Found 417ms] GEThttps://localhost/sovadigitals.com/wp-content/themes/sova-digitals/assets/js/bootstrap.js?ver=5.9.2 [HTTP/1.1 404 Not Found 499ms] Loading failed for the <script> with source “https://localhost/sovadigitals.com/wp-content/themes/sova-digitals/js/bootstrap.js?ver=5.9.2”. localhost:48:1 JQMIGRATE: Migrate is installed, version 3.3.2 jquery-migrate.min.js:2:709 Loading failed for the <script> with source “https://localhost/sovadigitals.com/wp-content/themes/sova-digitals/assets/js/bootstrap.js?ver=5.9.2”.
wp_enqueue_script( 'sova-digitals-bootstrap-bundle-js', esc_url(get_template_directory_uri()) . '/assets/js/bootstrap.js', array( 'jquery' ), '', true ); wp_enqueue_script( 'sova-digitals-navigation-js', esc_url(get_template_directory_uri()) . '/assets/js/navigation.js', array( 'jquery' ), '', true );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How do i resolve sscript not loading in wordpress?’ is closed to new replies.