Created
August 12, 2013 05:43
-
-
Save bradpotter/6208477 to your computer and use it in GitHub Desktop.
Enqueue Header Menu Script
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
/** | |
* Register and Enqueue Header Navigation Menu Script | |
* | |
* @author Brad Potter | |
* | |
* @link http://www.bradpotter.com | |
*/ | |
function gst_headermenu_script() { | |
wp_register_script( 'header-menu', get_stylesheet_directory_uri() . '/js/headermenu.js', array('jquery'), '1.0.0', false ); | |
wp_enqueue_script( 'header-menu' ); | |
} | |
add_action('wp_enqueue_scripts', 'gst_headermenu_script'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment