I am attempting to install unslider jquery plugin for my WordPress website. I enter the below code inside my WordPress text editor and I don't get the expected result. I changed $ to jQuery and that didn't fix it either.
<!-- The barebones HTML required for Unslider -->
<div class="banner">
<ul><li>This is my slider.</li><li>Pretty cool, huh?</li></ul>
</div>
<!-- And the relevant JavaScript -->
<script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="/path/to/unslider.js"></script> <!-- but with the right path! -
->
<script>$(function() { $('.banner').unslider() })</script>
Output:
This is my slider. Pretty cool, huh?
$(function() { $(‘.banner’).unslider() })
->
with a\n
in between-
and the->
, move it up to the end of<-- but with the right path! -->
.