I have html, css and javascript codes from the codepen, this pen . Html and css got up fine, but with js it doesn’t work
Here is the javascript code itself:
$(document).ready(function(){ $(".Modern-Slider").slick({ autoplay:true, autoplaySpeed:10000, speed:600, slidesToShow:1, slidesToScroll:1, pauseOnHover:false, dots:true, pauseOnDotsHover:true, cssEase:'linear', // fade:true, draggable:false, prevArrow:'<button class="PrevArrow"></button>', nextArrow:'<button class="NextArrow"></button>', }); }) If you just add it to functions.php, it gives an error:
Parse error: syntax error, unexpected '(', expecting variable (T_VARIABLE) or '$'
Maybe you know how to connect this code?
functions.php? In which part of the site, on which page you plan to use it? - alenkins