Skip to content

Instantly share code, notes, and snippets.

@scottlyttle
Last active December 12, 2015 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottlyttle/4701436 to your computer and use it in GitHub Desktop.
Save scottlyttle/4701436 to your computer and use it in GitHub Desktop.
Basic implementation of registering scripts and styles in WordPress through functions.php
function themename_scripts() {
wp_enqueue_script('functions', get_template_directory_uri() . '/js/functions.js', array('jquery'));
wp_enqueue_style('custom-style', get_template_directory_uri() . '/css/custom-style.css');
}
add_action( 'wp_enqueue_scripts', 'themename_scripts' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment