Created
September 18, 2018 22:07
-
-
Save Edwardtonnn/2020f3c34cfdf7120d903aee9b013846 to your computer and use it in GitHub Desktop.
Slick Slider
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
<?php | |
// Drop Slick Slider files inside of js folder and add the following to your functions.php | |
//Slick Slider JS | |
add_action('wp_enqueue_scripts', 'load_slick', 5); | |
function load_slick(){ | |
// Slick Slider JS | |
wp_enqueue_script( | |
'slick', | |
get_stylesheet_directory_uri() . '/js/slick/slick.js', | |
array('jquery'), | |
false, | |
'all' | |
); | |
// Slick Slider JS | |
wp_enqueue_script( | |
'slick-init', | |
get_stylesheet_directory_uri() . '/js/slick/slick-init.js', | |
array('jquery'), | |
false, | |
'all' | |
); | |
wp_enqueue_style( | |
'slick', | |
get_template_directory_uri() . '/js/slick/slick.css' | |
); | |
wp_enqueue_style( | |
'slick-theme', | |
get_template_directory_uri() . '/js/slick/slick-theme.css' | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment