Created
March 20, 2016 11:47
-
-
Save Willem-Siebe/0c9909f67e162ca5da58 to your computer and use it in GitHub Desktop.
Salonized scripts and styles.
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
// WSIS: Salonized scripts and styles | |
function wsis_salonized_scripts() { | |
wp_register_style( 'salonized', '//cdn.salonized.com/assets/booking/v2/booking.css', false, false, 'screen, projection' ); | |
wp_enqueue_style( 'salonized' ); | |
wp_register_script( 'salonized-v2-js', '//cdn.salonized.com/assets/booking/v2.js', false, false, true ); | |
wp_register_script( 'salonized-init', get_stylesheet_directory_uri() . '/js/salonized/wsis-salonized.js', array( 'salonized-v2-js' ), false, true ); | |
wp_enqueue_script( 'salonized-init' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'wsis_salonized_scripts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment