Created
October 1, 2012 12:53
-
-
Save dgmike/3811632 to your computer and use it in GitHub Desktop.
WordPress Functions: Register theme scripts
This file contains 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
/* | |
Add scripts to the WordPress loader cue | |
*/ | |
function px_theme_scripts() { | |
if(!is_admin()) : | |
$js_path = get_template_directory_uri().'/inc/js/'; | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', $js_path.'scripts/jquery.latest.js'); | |
wp_enqueue_script('jquery'); | |
endif; | |
} | |
add_action('init', 'px_theme_scripts'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment