Home › Forums › Back End › can’t embed scripts in WordPress › Re: can’t embed scripts in WordPress
September 24, 2010 at 2:36 pm
#79109
EricM
Member
Thanks Doc, that’s where I got the above code. I also tried this from codex at http://codex.wordpress.org/Function_Reference/wp_enqueue_script :
function my_init_method() {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js');
}
add_action('init', 'my_init_method');
?>