Markup to use plugin with html
-
Hallo Martin,
First of all, I love the idea of your plugin! Most other lightbox plugins are totally overloaded – i like the simplicity of yours.
I would like to use the lightbox for images in other plugins or HTML blocks. (I work a lot with Loops & Logic or Beaver Builder). I tested different markups but the lightbox never opened.
<div> <a href="link/to/image.jpg"> <img class="test" src="link/to/image.jpg"> </a> </div>
I added a custom class “test” to the json configuration file and tried with adding this class to the wrapper div, the a link element or the img tag itself. But i guess i missed something. I tried it on a normal page post type.
Do you know what else i could try or what i did wrong?
Kind regards and have a nice day
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Markup to use plugin with html’ is closed to new replies.