I've always replaced every single "$" with "jQuery" and it's always worked beautifully (so for instance in your example, the 2nd $ in your line would also have to be changed to jQuery). I wonder if changing to $j would be a better way to go??
I have been staring at this one for some time now. Checking the script from 'DOM ready', comparing the scripts (and CSS :-) ). But now I have found it!!!
HTML 5 data- Attributes
As of jQuery 1.4.3 HTML 5 data- attributes will be automatically pulled in to jQuery's data object.
You are including 1.4.2, so the 'data-pos' HTML attribute is ignored. So, either include a newer version of jquery or change:
BTW You can use '$' to reference jquery while inside the :
jQuery(document).ready(function($) { }
I also don't think you need to use the no-conflict mode of jquery. If you are still loading the script via the deregister/register scripting in the 'function.php', as it unloads Wordpress's warped version of jQuery (but leaves the original jQuery for admin pages!).
I could be wrong, on all accounts - but I have learnt a few things while playing :-p
I believe that links locally, you probably can just rip out that line and link straight to googles newest version and be fine. You should do that anyway.
I use this script, it includes the deregistering of WP's jQuery, pulling in the Google CDN version, and loading other plugins etc. The plugins loading based on dependancy aswell;
Not working... http://build.aaronheine.com/about/
Same thing.
Thanks
have a look here:
http://codex.wordpress.org/Function_Reference/wp_enqueue_script
or just wrap your jQuery in this document ready, instead of the default:
jQuery(document).ready(function($) {So I changed...
with
but still not working.
If you have a read through the page I linked it might make a little more sense too :)
and here too:
http://digwp.com/2009/06/including-jquery-in-wordpress-the-right-way/
This is some craziness!
The jQuert is adding the distance to the list items, just not the #mover.
HTML 5 data- Attributes
As of jQuery 1.4.3 HTML 5 data- attributes will be automatically pulled in to jQuery's data object.
You are including 1.4.2, so the 'data-pos' HTML attribute is ignored. So, either include a newer version of jquery or change:
to:
BTW You can use '$' to reference jquery while inside the :
I also don't think you need to use the no-conflict mode of jquery. If you are still loading the script via the deregister/register scripting in the 'function.php', as it unloads Wordpress's warped version of jQuery (but leaves the original jQuery for admin pages!).
I could be wrong, on all accounts - but I have learnt a few things while playing :-p
I wonder why the following code pulls an older JQ library? Seems like it would pull the newest.
<?php wp_enqueue_script("jquery"); ?>
http://codex.wordpress.org/Function_Reference/wp_enqueue_script#Example
Shows how to pull it from the CDN :)
I use this script, it includes the deregistering of WP's jQuery, pulling in the Google CDN version, and loading other plugins etc. The plugins loading based on dependancy aswell;