Enqued jQuery vs Included jQuery differences?
-
I am currently trying to build my own zurb foundation based wordpress framework. Getting the two to play nicely within the WP conventions isn’t the easiest thing ever. I am currently stuck on one step in my framework. I am copying bits and peices from the 320 Press Zurb Foundation — Bones Port in particular,
function load_local_jQuery() { wp_deregister_script('jquery'); // initiate the function wp_register_script('jquery', get_template_directory_uri().'/javascripts/jquery.min.js', __FILE__, '1.7.2'); // register the local file wp_enqueue_script('jquery'); // enqueue the local file } add_action('wp_enqueue_scripts', 'load_local_jQuery'); // initiate the function
when I delete this snippet so that the standard jquery is used as a dependency
wp_register_script( 'foundation-reveal', get_template_directory_uri() . '/javascripts/foundation/jquery.reveal.js', 'jquery', '1.1', true );
it doesn’t work. Can somebody elaborate as to why the newer flashier version jQuery 1.8.3 included in WP 3.5 isn’t working? Does no-conflict mode need to be invoked?
- The topic ‘Enqued jQuery vs Included jQuery differences?’ is closed to new replies.