Javascript loading problem
-
Hello,
I’m trying to make my own WP theme, but the problem is that javascript is not working.
Here is part of my code in header.php file:<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.easing.js"></script> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.vticker-min.js"></script>
and in functions.php
<?php if( !is_admin()){ wp_deregister_script('jquery'); wp_register_script('jquery', ("https://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.js"), false, '1.4.1'); wp_enqueue_script('jquery'); }
I think my code is right, but none of javascript is loading. In my html template js is work fine.
Where is the problem?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Javascript loading problem’ is closed to new replies.