lightcase
lightcase copied to clipboard
Can I instead of href use src atr for getting the source file?
I am using below html for my hashtagged gallery:
<img data-gallery-tag="#men"
class="gallery-item "
src="men-2.jpg"
data-label="Test">
I run script as per your website but changing a with img:
<script type="text/javascript">
jQuery(document).ready(function($) {
$('img[data-rel^=lightcase]').lightcase();
});
</script>
Works fine if I add href to my img.
I would like to specify lightcase to take src for <img> and href for <a>
As described in the docs you can use the attribute data-lc-href as an alternative to href.