Open ninbit opened 6 months ago
It seems relative paths don't work in a hidden gallery. None of the below worked:
<div data-toggle="lightbox" data-gallery="hidden-images" data-src="/img/image1.jpg" data-title="Hidden item 1"></div> <div data-toggle="lightbox" data-gallery="hidden-images" data-src="img/image1.jpg" data-title="Hidden item 1"></div> <div data-toggle="lightbox" data-gallery="hidden-images" data-src="./img/image1.jpg" data-title="Hidden item 1"></div> <div data-toggle="lightbox" data-gallery="hidden-images" data-src="image1.jpg" data-title="Hidden item 1"></div>
However, when I tried an absolute path like D:\Folder\MySite\img\image1.jpg, it worked. I think there is an issue with relative paths in hidden gallery. (By the way, I'm using windows)
D:\Folder\MySite\img\image1.jpg
It seems relative paths don't work in a hidden gallery. None of the below worked:
However, when I tried an absolute path like
D:\Folder\MySite\img\image1.jpg
, it worked. I think there is an issue with relative paths in hidden gallery. (By the way, I'm using windows)