Include jQuery in header.php… PLEASE HELP ?!
-
I’m trying to include the jQuery library and trigger my script (tested and working on standard HTML page), but not having any luck. Can anybody help… it’s driving me nuts?
I’ve scoured the forums and Google and tried everything that I’ve come across, but it’s just not happening.
This is what I’ve currently got i the header.php:
I have placed this:
<?php wp_enqueue_script('jquery'); ?> <?php wp_enqueue_script('myjsfile', '/wp-content/themes/my-theme/js/myjsfile.js', array('jquery')); ?> <script type="text/javascript"> jQuery(document).ready(function() { jQuery('.rOver').myjsfile({speed: 100, delay: 400}); }); </script>
Immediately before this:
<?php wp_head(); ?>
- The topic ‘Include jQuery in header.php… PLEASE HELP ?!’ is closed to new replies.