javascript - js/vendor/jquery.js returns 404 error -
enter image description heremy jquery returning 404 error. found out scripts being called in wrong way. suggested make changes did. there 1 change can't make or breaks theme. i'm not sure file controls though. below examples.
header.php - italicized "/></script> breaks theme if removed had put back. i've been told should removed
<link rel="stylesheet" href="<?php echo esc_url( home_url( '/' ) ); ?>wp-content/themes/cheaptubes/css/foundation.css" /> <script src="<?php echo esc_url( home_url( '/' ) ); ?>wp-content/themes/cheaptubes/js/vendor/*"></script>* <link rel="stylesheet" href="<?php echo esc_url( home_url( '/' ) ); ?>wp-content/themes/cheaptubes/style.css" /> <?php wp_head(); ?> footer-home.php
<script src="<?php echo esc_url( home_url( '/' ) ); ?>wp-content/themes/cheaptubes/js/vendor/ wp_register_script( 'reverie-js', get_template_directory_uri() . '/js/foundation.min.js', array( 'jquery' ), '', true ); <script> footer.php
<script src="<?php echo esc_url( home_url( '/' ) ); ?>wp-content/themes/cheaptubes/js/vendor/jquery.js"></script> <script src="<?php echo esc_url( home_url( '/' ) ); ?>wp-content/themes/cheaptubes/js/foundation.min.js"></script> <script> (function($) { $(document).foundation(); })(jquery); </script> layout.php top
<script src="<?php ech esc_url(home_url( '/' ) ); ?>wp-content/themes/cheaptubes/js/vendor/ bottom
<script src="<wp_register_script('reverie-js', get_template_directory_uri() . '/js/foundation.min.js', array( 'jquery' ), ", true ); i've been searching online javascript validators w/out success
404 means url invalid, file isn't found on server. actual url looking is: http://cheaptubes.com/wp-content/themes/cheaptubes/js/vendor/jquery.js
i think should try removing entire line have italicized, think you're including jquery file in footer.php.
Comments
Post a Comment