Skip to content

Instantly share code, notes, and snippets.

@dustinleer
Last active August 3, 2020 17:04
Show Gist options
  • Save dustinleer/a1158650d0ba87f198647cef813f419a to your computer and use it in GitHub Desktop.
Save dustinleer/a1158650d0ba87f198647cef813f419a to your computer and use it in GitHub Desktop.
Enqueue Scripts
<?php
/**
* Enqueue scripts and styles.
*/
function custom_scripts() {
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'svg_magic', get_stylesheet_directory_uri() . '/js/jquery.svgmagic.js', array(), '20120206', true );
wp_enqueue_script( 'functions', get_stylesheet_directory_uri() . '/js/functions.js', array(), '20130115', true );
}
add_action( 'wp_enqueue_scripts', 'custom_scripts' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment