Skip to content

Instantly share code, notes, and snippets.

@Willem-Siebe
Created March 20, 2016 11:47
Show Gist options
  • Save Willem-Siebe/0c9909f67e162ca5da58 to your computer and use it in GitHub Desktop.
Save Willem-Siebe/0c9909f67e162ca5da58 to your computer and use it in GitHub Desktop.
Salonized scripts and styles.
// 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