Last active
December 12, 2015 02:48
-
-
Save scottlyttle/4701436 to your computer and use it in GitHub Desktop.
Basic implementation of registering scripts and styles in WordPress through functions.php
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 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