Required data attributes on link
-
Thanks for the great plugin!
Just a piece of information that might be useful for others: in order to work, it appears to be mandatory that the link tag includes a “data-width” / “data-height” attribute.
So for instance, an image link formatted like this won’t trigger the lightbox:
<a href="large.jpg"><img src="thumb.jpg"/></a>
In order to work, something like this is required:
<a href="large.jpg" data-width="1200" data-height="800"><img src="thumb.jpg"/></a>
I needed to figure this out in order to use the plugin with a custom theme I’m developing.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Required data attributes on link’ is closed to new replies.