751 posts
  • 6 Years of Membership
  • Affiliate Level 1
  • Collector Level 2
  • Exclusive Author
+1 more
CyberShot
says

you need to try the code they posted. There is a reason to deregister the jquery

438 posts
  • 3 Years of Membership
  • Author Level 4
  • Collector Level 3
  • Exclusive Author
Pixelous
says

function my_scripts_method() {
    wp_register_script( 'my_script', get_template_directory_uri() . '/js/my_script'.js', array( 'jquery' ) );

    wp_enqueue_script( 'my_script' );
}
add_action( 'wp_enqueue_scripts', 'my_scripts_method', 1 );

What does number one means?

3439 posts
  • Author Level 4
  • Collector Level 2
  • Community Superstar
  • United States
+2 more
organicbee
says


function my_scripts_method() {
    wp_register_script( 'my_script', get_template_directory_uri() . '/js/my_script'.js', array( 'jquery' ) );

    wp_enqueue_script( 'my_script' );
}
add_action( 'wp_enqueue_scripts', 'my_scripts_method', 1 );

What does number one means?

sets the priority

http://codex.wordpress.org/Function_Reference/add_action
438 posts
  • 3 Years of Membership
  • Author Level 4
  • Collector Level 3
  • Exclusive Author
Pixelous
says

Thanks, OrganicBeeMedia, i’ll try it.

by
by
by
by
by
by