Show Lightbox onclick div
-
Hello:
Thank you for this plugin, is awesome. But in my theme (Hestia Pro), the header of single post, contains the featured image as background of a div (Demo Hestia Pro Single Post)
<div class="header-filter" style="background-image: url(https://demot-vertigostudio.netdna-ssl.com/hestia-pro/wp-content/uploads/sites/92/2018/03/puppy_road.jpeg);"></div>
I put this code inside div:
onclick="window.open('https://demot-vertigostudio.netdna-ssl.com/hestia-pro/wp-content/uploads/sites/92/2018/03/puppy_road.jpeg','_blank')"
But it open the image in a new tab, not Lightbox.
Anyone knows how to make a call to Simple Lightbox function (js) to open the image with Lightbox?
Thank you in advance!
The page I need help with: [log in to see the link]
- The topic ‘Show Lightbox onclick div’ is closed to new replies.