Created
August 21, 2014 04:14
-
-
Save hitsujixgit/86693fbd2e0a2b8cd949 to your computer and use it in GitHub Desktop.
Setting of javascript in WordPress theme.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// javascript | |
add_action('wp_head', 'myJavaScript_head', 1); | |
if( !function_exists('myJavaScript_head') ) { | |
function myJavaScript_head() { | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery',get_bloginfo('template_url'). '/js/jquery-1.7.1.min.js'); | |
wp_enqueue_script('jquery'); | |
wp_enqueue_script('pageslide', get_bloginfo('template_url'). '/js/jquery.pageslide.min.js', array('jquery'), false, true); | |
wp_enqueue_script('mypageslide', get_bloginfo('template_url'). '/js/myPageslide.js', array('jquery'), false ,true); | |
wp_enqueue_script('bxslider', get_bloginfo('template_url'). '/js/jquery.bxslider.min.js', array('jquery')); | |
wp_enqueue_script('mybxslider', get_bloginfo('template_url'). '/js/mybxslider.js', array('jquery'), false ,true); | |
//...以下省略 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment