Created
October 24, 2011 04:21
-
-
Save cyberchimps/1308372 to your computer and use it in GitHub Desktop.
droidpress enqueue
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
// Call Superfish/jQuery | |
if ( !is_admin() ) | |
{ | |
function droidpress_frontend_scripts() | |
{ | |
// Adjust the below path to where scripts dir is, if you must. | |
$scriptdir = get_template_directory_uri() ."/library/sf/"; | |
// Register the Superfish javascript file | |
wp_register_script( 'superfish', $scriptdir.'sf.js', false, '1.4.8'); | |
wp_register_script( 'sf-menu', $scriptdir.'sf-menu.js'); | |
//load the scripts. | |
wp_enqueue_script('superfish'); | |
wp_enqueue_script('sf-menu'); | |
wp_enqueue_script('jquery'); | |
} | |
add_action('wp_enqueue_scripts', 'droidpress_frontend_scripts'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment