Page 1 of 1

Multiple lines under an image in the Photo Gallery?

Posted: Mon Feb 10, 2025 11:32 am
by Egidius
Hello,
I have made a Photo Gallery, with Gallery Mode: Light Box Gallery, and Type: magnificPopup.
When I click on one of the thumbs the image is shown with the title I added underneath it.
Now I would like to have MULTIPLE lines under the image, but I can’t get it done.
On viewtopic.php?t=85378 Pablo says: “The title can be one line only. The description supports multiple lines.”
However, if I fill in a Description (Doubleclicking the Gallery, then Edit one of the images and adding a text in the Description box), it is not shown. The Title is, but not the text that I added for Description.
How can this be fixed? Can I have multiple lines of text being shown beneath the images?
Thank you.

Re: Multiple lines under an image in the Photo Gallery?

Posted: Mon Feb 10, 2025 12:36 pm
by Pablo
The comment in the topic you are referring to does not apply to lightboxes, but to description below the image.

Most Lightbox scripts do not support multiple lines. The reason for this is because the description is an attribute, which cannot contain HTML tags, so there is no way to indicate a new line has started.
This cannot be 'fixed' because these are third party script so they are provided "AS IS".

Re: Multiple lines under an image in the Photo Gallery?

Posted: Mon Feb 10, 2025 1:01 pm
by Egidius
I see, thank you for anwering.

And what about the font, size and colour of the Title. Can this be edited?

Re: Multiple lines under an image in the Photo Gallery?

Posted: Mon Feb 10, 2025 1:56 pm
by Pablo
I assume you mean in the lightbox?

Each lightbox has it's own settings, so there are no generic settings.
To find out which options are available, it's best to visit the website of the lightbox script.

See also:
https://www.wysiwygwebbuilder.com/lightboxes.html

Re: Multiple lines under an image in the Photo Gallery?

Posted: Mon Feb 10, 2025 2:29 pm
by Egidius
I assume you mean in the lightbox?
I mean, when you click on a thumbnail in the Photo Gallery, the image will open in the Light Box Gallery/Type: magnificPopup, and below the picture you can see the Title of the image.
And I would like to edit the font, size and colour of the Title.
But I can't find any information about how to do that (if it can be done).
Can you help me out, please?

Re: Multiple lines under an image in the Photo Gallery?

Posted: Mon Feb 10, 2025 3:17 pm
by Pablo
In case of magnificPopup, you will need to add custom CSS.

Code: Select all

<style>
.mfp-title 
{
    color: #F3F3F3;
    font-family: Arial;
}
</style>
Here' an overview of all standard styles.
https://github.com/dimsemenov/Magnific- ... -popup.css

Note that this is not specific to WWB.

Re: Multiple lines under an image in the Photo Gallery?

Posted: Mon Feb 10, 2025 3:45 pm
by Egidius
Thank you.