I have a gallery functionality which loads with 6 images initially.And then on show more,next 6 images appear.I am only using the slick lightbox on it.I want my slick lightbox to display all the images irrespective of whether they are loaded in the dom or not.So if I have 12 images out of which 6 images are visible without clicking on show more,I want my slick lightbox to display all the 12 images on the FIRST load itself.So this works like a preview .
Currently,I am trying to achieve this with an ajax call but my the images do not seem to get updated in the lightbox. Please help.
I have a gallery functionality which loads with 6 images initially.And then on show more,next 6 images appear.I am only using the slick lightbox on it.I want my slick lightbox to display all the images irrespective of whether they are loaded in the dom or not.So if I have 12 images out of which 6 images are visible without clicking on show more,I want my slick lightbox to display all the 12 images on the FIRST load itself.So this works like a preview .
Currently,I am trying to achieve this with an ajax call but my the images do not seem to get updated in the lightbox. Please help.