Created
September 21, 2015 14:45
-
-
Save JacobLett/e80801c40c4b1aea154d to your computer and use it in GitHub Desktop.
enque scripts and styles wordpress
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
function richwp_scripts_styles() { | |
wp_enqueue_style( 'richwp-style', get_stylesheet_uri(), '', '1.0', false ); | |
wp_enqueue_script( 'modernizr', get_template_directory_uri() . '/js/modernizr-2.6.1.min.js', '', '1.0', false); | |
wp_enqueue_script( 'jquery' ); | |
wp_enqueue_script( 'plugins', get_template_directory_uri() . '/js/plugins.js', array('jquery'), '1.0', true); | |
} | |
add_action( 'wp_enqueue_scripts', 'richwp_scripts_styles' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment