Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript need help getting Anythingslider running! Re: need help getting Anythingslider running!

#91668
mrtphotog
Participant

Yeah.. that was it. I wasn’t looking hard enough. I was anticipating that WordPress was loading jquery already. I found the right chunk of code in the WordPress Codex:

function my_scripts_method() {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js');
wp_enqueue_script( 'jquery' );
}

add_action('wp_enqueue_scripts', 'my_scripts_method');

That got it running. I’ll mess with the settings and update the function for a more up to date version of jquery. Once I have everything functioning.. I’ll write a how-to. I can’t be the only one that needs Jquery in WordPress for regular posts.
Thanks Mottie!