D
D
Daniil Postnov2018-09-21 08:57:17
JavaScript
Daniil Postnov, 2018-09-21 08:57:17

How to remove wrapper and change slide tag in slick slider?

Task: make a gallery for each slider.
Initial markup:
5ba486354cfeb510618704.jpeg
When I initialize the slider, the markup changes, each of my elements is wrapped in 2 divs. In order for all the pictures to be linked to their gallery, they must be neighbors and be links, in my case, this does not work for each image on its own.
Markup after slider initialization:
5ba486b105386269724718.jpeg
I need all a tags to be in slick-track, i.e. I need to make slick-slide be a link and with my href and style, like here:
5ba487e9a2794200605289.png
How to do it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Khristoev, 2018-09-21
@Haoss

what kind of gallery is this, where everything should be nearby?

D
Daniil Postnov, 2018-09-23
@postnov_daniil

The question is closed. Added fancybox instead of photoswipe

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question