Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Ad hoc lightbox on images?

Home / Forums / Virtue Theme / Ad hoc lightbox on images?

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
October 31, 2014 at 11:59 am

I have some products that I’m describing. There is a screenshot that accompanies each. I have also custom-cropped (instead of just auto-resized) some images to serve as thumbnails. What I would like to do is this:

1. Put the img tag of the thumbnail into the post
2. identify in the tag itself or with a wrapping element (anchor tag? Doesn’t matter) the location of the large version
3. set it so that when the user clicks the thumbnail, the large image appears in a lighbox or Magnific or whatever

Can this be done? I searched the forums for someone else trying this, but came up short. I also tried to embed a Cyclone slideshow so that I could just borrow the rendered markup, but the lightbox functionality wasn’t “working” (ie. I missed something in configuration I guess…).

{img src=”thumbnail.jpg” data-target=”big_version.jpg” rel=”lightbox” /} or something like that…. (curly braces replaced by angle braces)

  • The forum ‘Virtue Theme’ is closed to new topics and replies.