I
I
Intelix2020-07-10 17:04:48
Slick
Intelix, 2020-07-10 17:04:48

Why is the content of the slick slider not showing up?

There is a simple slider with 4 elements, I initialize it like this:

$(document).ready(function (e) {
  $(".comm-slider").slick({
    dots: true,
    prevArrow: "<img src='img/left-slide.png' class='prev' alt='1'>",
    nextArrow: "<img src='img/right-slide.png' class='next' alt='2'>"
  })
});

There are no modal windows and tabs, the slider is right on the landing.
But for some reason it looks like this:
5f087514b35c2196788924.png
Without content inside, although it is there.
For what reasons might this happen? Because on another page exactly the same code works (I tried to disable all left styles and scripts on this page, the result is still the same)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Intelix, 2020-07-10
@Intelix

Krch that's the problem, I had the dir="rtl" attribute on the html tag for clear purposes, if you remove it (or force it to change on the slider) everything works

V
Valentin Birulya, 2020-07-10
@nykakdelishki

Obviously the slider doesn't see the element styles. Try to check everything related to connecting styles

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question