Can't get wp_enqueue_script('jQuery') to work!
-
I’m slowly but surely building a WordPress theme, but I’ve run into a problem.
I’m trying to install flexslider which uses jQuery, but I can only get it to work using the normal <script src=”google jQuery url”/>, not using the built in WordPress jQuery. Here’s the important bit of header.php:
<?php wp_enqueue_script('jQuery'); ?> <link rel="stylesheet" href="<?php bloginfo('template_url')?>/css/flexslider.css" type="text/css"> <script src="<?php bloginfo('template_url')?>/scripts/jquery.flexslider.js"></script> <script type="text/javascript" charset="utf-8"> jQuery(document).ready(function($) { $('.flexslider').flexslider({ animation: "slide" }); }); </script> <?php wp_head();?>Thanks in advance!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Can't get wp_enqueue_script('jQuery') to work!’ is closed to new replies.