Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I instead of href use src atr for getting the source file? #162

Open
adamwojt opened this issue Dec 6, 2018 · 1 comment
Open

Can I instead of href use src atr for getting the source file? #162

adamwojt opened this issue Dec 6, 2018 · 1 comment

Comments

@adamwojt
Copy link

adamwojt commented Dec 6, 2018

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>

@cbopp-art
Copy link
Owner

As described in the docs you can use the attribute data-lc-href as an alternative to href.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants