Essential Grid lightbox captions

Hello,

I am working with essential grid to display photos. I want to add captions to all my photos in the lightbox, but I am only managing to get the captions to appear for the first image in the lightbox. This seems like a very basic functionality… Can you tell me if this is possible to achieve? I saw some other posts on this topic, but they seemed to want more intricate things. I just want simple captions under or on top of my images in the lightbox of essential grid. I enabled all the options that should enable this and am now without a clue of what else to try. Could you please help me to achieve this? Thank you.

Hello @Tierramitica,

Thanks for writing in!

In your Essential grid settings, please make sure that the Caption is enabled as the Title Source in your Lightbox settings.

Kindly let us know how it goes.

Hello Ruenel,

Yes, caption is enabled as the title source. I also put the same content in “Alt” and tried to use that as a title source, but with the same result: the text only appears in the first image of the lightbox, not in any of the other. Thanks for looking further into this…

Hey @Tierramitica,

After many trials to find the culprit why the caption is only showing on the first load, I couldn’t find the exact problem. Upon checking the source code, there’s a class in the first slider that doesn’t available in the next slides. That being said, you can add the CSS code below to show the lightbox caption.

.esgbox-is-open .esgbox-inner .esgbox-caption {
  opacity: 1;
  transition: opacity .25s ease 0s, visibility 0s ease 0s;
  visibility: visible;
} 

Please note that custom CSS code is outside the scope of our support. Issues that might arise from the use of custom CSS code and further enhancements should be directed to a third-party developer or you can avail One where we can answer questions outside of the features of our theme.

Hope that helps.

Hello Marc,

A miracle has happened! I was about to add this code and now suddenly all the captions are showing. I have no idea what happened, but suddenly things are working. Thanks for the code, I will use it if by some other magic they disappear again :slight_smile:

Hey @Tierramitica,

That’s great and we’re glad that it is now working properly on your end! If you have any other concerns or clarifications regarding our theme features, feel free to open up a new thread.

Thank you.

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