How to create a custom slider using Slick Slider

Some of the time we can not see a wordpress plugin that is looks like the slider on the design so what I going to do is to create a custom slider one of my favorite slider is the slick slider. You can create a custom slider by following the steps below.

First we have to embed the necessary js and css file, you can download the files from here http://kenwheeler.github.io/slick or use a CDN version https://cdnjs.com/libraries/slick-carousel

Add this code to the
[php]
<link rel="stylesheet" type="text/css" href="slick/slick.css"/>
// Add the new slick-theme.css if you want the default styling
<link rel="stylesheet" type="text/css" href="slick/slick-theme.css"/>
[/php]

Add this code before the tag, please remove the jquery library if you already have it in your website
[php]
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="slick/slick.min.js"></script>
<script>
$(document).ready(function(){
$(‘.your-class’).slick({
// We can add the slider settings below this line
});
});
</script>
[/php]

Lastly, the html markup
[php]
<div class="your-class">
<div>your content</div>
<div>your content</div>
<div>your content</div>
</div>
[/php]

When complete your html markup should be like this:

[php]
<html>
<head>
<title>My Now Amazing Webpage</title>
<link rel="stylesheet" type="text/css" href="slick/slick.css"/>
<link rel="stylesheet" type="text/css" href="slick/slick-theme.css"/>
</head>
<body>

<div class="your-class">
<div>your content</div>
<div>your content</div>
<div>your content</div>
</div>

<script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="slick/slick.min.js"></script>

<script type="text/javascript">
$(document).ready(function(){
$(‘.your-class’).slick({
setting-name: setting-value
});
});
</script>

</body>
</html>
[/php]