jQuery unable to run!
-
Hi all,
I added this code in my functions.php file.
// Load jQuery if ( !is_admin() ) { wp_deregister_script('jquery'); wp_register_script('jquery', ("https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"), false); wp_enqueue_script('jquery'); } function kill_l10n() { if ( !is_admin() ) wp_deregister_script( 'l10n' ); } add_action( 'wp_print_scripts', 'kill_l10n' );
And I added this
<script src="=<?php bloginfo('template_url'); ?>/js/script.js"></script>
before
<?php wp_head(); ?>
Unfortunately, my jQuery script still can’t load.
Does anyone know how to troubleshoot this?
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘jQuery unable to run!’ is closed to new replies.