Title: long lightbox caption
Last modified: August 26, 2021

---

# long lightbox caption

 *  Resolved [jesperangsgarden](https://wordpress.org/support/users/jesperangsgarden/)
 * (@jesperangsgarden)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/long-lightbox-caption/)
 * Hello, nice plugin!
 * Is there any way to get the caption shown in the lightbox to split into several
   rows once it runs out of room on a line?
    I’m using <br> tags right now in the
   caption, but it’s not a pretty solution because it’s not resize friendly for 
   different screen sizes.
 * //Jesper

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [GalleryCreator](https://wordpress.org/support/users/gallerycreator/)
 * (@gallerycreator)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/long-lightbox-caption/#post-14807966)
 * Hello,
    in basic blocks, the lightbox was designed for short caption (one line)
   and does not support multiple data sources at the same time, such as Title and
   Description
 *  Thread Starter [jesperangsgarden](https://wordpress.org/support/users/jesperangsgarden/)
 * (@jesperangsgarden)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/long-lightbox-caption/#post-14810164)
 * Thanks for your quick reply. I get that it can’t pull multiple data sources, 
   that is not an issue. But I can’t really get my head around why the text doesn’t
   go to a new line when it’s longer, even if I understand that is not the intended
   use.
    I’m trying to get it to do what I want by adding to the custom css panel
   but I can’t seem to find the right class to add the behaviour to:
 * .pgc-rev-lb-b-info-wrap {
    overflow-wrap: break-word; }
 * any advice?
 *  Plugin Author [GalleryCreator](https://wordpress.org/support/users/gallerycreator/)
 * (@gallerycreator)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/long-lightbox-caption/#post-14810355)
 * Try add to Customize -> Additional CSS
 *  Thread Starter [jesperangsgarden](https://wordpress.org/support/users/jesperangsgarden/)
 * (@jesperangsgarden)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/long-lightbox-caption/#post-14810671)
 * I’ve tried adding the following code in two places with no effect on either location:
   
   1. Blocks preset -> justified block (what I use) -> custom css 2. Galleries -
   > my one test gallery so far -> gallery block -> custom css
 * .pgc-rev-lb-b-header,
    .pgc-rev-lb-b-show, .pgc-rev-lb-b-info-wrap, .pgc-rev-
   lb-b-item-title { overflow: visible; overflow-wrap: break-word; white-space:normal;}
 * I notice since text-overflow is set to ellipsis, and I can see the triple dots…
   clearly it recognises that the text has reached the end of it’s container

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘long lightbox caption’ is closed to new replies.

 * ![](https://ps.w.org/simply-gallery-block/assets/icon-256x256.png?rev=2543539)
 * [Mixed Media Gallery Blocks](https://wordpress.org/plugins/simply-gallery-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simply-gallery-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simply-gallery-block/)
 * [Active Topics](https://wordpress.org/support/plugin/simply-gallery-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simply-gallery-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simply-gallery-block/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [jesperangsgarden](https://wordpress.org/support/users/jesperangsgarden/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/long-lightbox-caption/#post-14810671)
 * Status: resolved