Support » Plugin: Simple Lightbox » Can I add a classname to link or image to trigger Lightbox?

  • Resolved deeholzman

    (@deeholzman)


    Thanks for this great plugin which works really well for images simply added to pages/posts, etc through WordPress Admin.

    However, when I add an image programmatically via a page template or functions.php by doing this:

    echo "<a class='single-post-image' href='".get_the_post_thumbnail_url()."'>";

    It will not open via Lightbox. I even tried adding these attributes to the link:
    data-slb-active='1' data-slb-internal='1'

    Is there way I can add a simple classname or something like that to ensure the link to the image opens in Lightbox?

    • This topic was modified 1 month, 3 weeks ago by deeholzman.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.