Skip to content

Instantly share code, notes, and snippets.

@dustinleer
Last active Aug 3, 2020
Embed
What would you like to do?
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