• Resolved evejuan

    (@evejuan)


    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]

Viewing 1 replies (of 1 total)
  • Plugin Author Archetyped

    (@archetyped)

    Hi, SLB works with links on the page, so my recommendation would be to wrap the header image in a link to allow it to be clicked on and have the image displayed in a lightbox.

Viewing 1 replies (of 1 total)
  • The topic ‘Show Lightbox onclick div’ is closed to new replies.