Single view - dynamic content - featured image - open in Lightbox

I am designing a single view for a CPT. I would like the featured image to open in a lightbox when clicked. How can I do that?

Hello @jbreits,

Thanks for writing to us.

Please make sure you are using the Pro theme, now you need t create a custom single layout. Please follow these steps.

1 Insert the image element
2. Insert the dynamic content code for the featured image.
3. Enable the link option and set the featured image URL through the dynamic content code.

postypetest-Single-Layout-Cornerstone

postypetest-Single-Layout-Cornerstone (1)

  1. Add a Raw content element and then add this code.
    [lightbox selector=".lightbox-01"]
    Test-Page-Builder-Pro (51)

  2. You need to go to the image element —>customize and add a class “lightbox-01”

postypetest-Single-Layout-Cornerstone (2)

Hope it helps
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.