Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function my_scripts_method() {
- wp_deregister_script( 'jquery' );
- wp_register_script( 'jquery','http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js');
- wp_enqueue_script( 'jquery' );
- }
- add_action('wp_enqueue_scripts', 'my_scripts_method');
- wp_enqueue_script( 'jquery' ); // Will load jquery from WordPress built in jquery handle
- wp_register_script(
- 'theme-script',
- get_stylesheet_directory_uri() . '/js/myscript.js',
- array('jquery'), // dependencies
- '1', // your version number
- true // script in footer
- );
- wp_enqueue_script( 'theme-script' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement