• Resolved jesperangsgarden

    (@jesperangsgarden)


    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

    (@gallerycreator)

    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

    (@jesperangsgarden)

    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

    (@gallerycreator)

    Try add to Customize -> Additional CSS

    Thread Starter jesperangsgarden

    (@jesperangsgarden)

    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.