Gallery 3 Stack: Captions with Multiple Lines

Hi there. I have built a page of page of, well, pics using the Gallery 3 stack. I would like to create captions with a title followed by 2-3 lines:

Title Line (preferably in bold)

  • Line 2
  • Line 3
  • Line 4

I am currently entering info into the alt field but cannot figure a way to force line breaks. Also, I tried entering the info w/line breaks into the images in the Mac Photos app and then exporting the images. However, the captions disappear after adding the image to the Gallery 3 stack.

Any guidance/help would be much appreciated. Many thanks!

If you are using Will Woodgate’s Pro Gallery 3, you add text in Image Title and Image Caption. You then have “Display Toggles” to not hide either title or captions. You find that under ProGallery Title and Caption Settings.

Assuming this is ProGallery 3 being discussed here, the ALT field isn’t suitable for longer caption content and HTML markup, like line breaks and lists. ALT is an acronym for ‘alternative text’. You can learn some more about it here. It gets used by assistive devices (like screen readers), search engines and machine learning / AI tools. Ideally you use ALT attributes to provide one or two sentences in plain text, explaining what your image is about. That way, people or machines who cannot view the image as you see it on the screen still have details explaining what the image is about.

For ProGallery 3, the exact setup of caption content depends on what image source you are using. Picking Single Dragged Image as an example, there is a dedicated box shown in the settings labelled Caption Content. Although plain “lorem ipsum doler” text is shown to start with, you can replace this with your own text. Basic HTML tags like <br> for line breaks might work. However the presentation of this caption content would depend on what lightbox is used. Some of the lightboxes I list don’t support captions at all, or convert them to plain text. So your milage may vary.

What I did in Pro Gallery 4 was to completely rewrite the entire codebase for handling caption content and the lightbox. Taking a single image as an example, in edit mode you now have separate drop zones for both the thumbnail content and lightbox content. Any basic stacks can be dragged and dropped into either. This makes it really easy to load-in caption content with HTML or Markdown formatting applied. As can be seen in this screen grab, Pro Gallery 4 respects this formatting and displays things exactly as you want:

You can do headings, paragraphs, lists, links and buttons. I’ve even seen someone do a shopping cart! It’ll handle it all, really easily for you. The caption content has a maximum width applied, to constrain content and keep things readable. All aspects of the caption alignment and styling can be changed within the settings.

As a side note, there’s some clever functionality built into the Pro Gallery 4 lightbox, to analyse the size of your image and caption content. The option is provided for you to have the lightbox automatically arrange the image and caption content for “best fit”. In other words, maximising the size of the image, while still ensuring the caption content fits on the screen. In some instances, this results in the caption content being placed to the right of the image, as can be seen here:

This provides a big upgrade in caption and lightbox capabilities, over what we had before. The artists and photographers currently testing and using Pro Gallery 4 have all unanimously said its brilliant for their portfolios.

2 Likes

Nicely done! Is Pro Gallery 4 available to purchase? I can’t tell for sure at the Stacks4Stacks website … it “seems” to be only Pro Gallery 3.

1 Like

As of December 2024, Pro Gallery 4 is not publicly available yet. I’m waiting on Stacks Pro becoming available, before considering the release of anything else. There is near-zero interest in addons currently. Any release now would be largely overlooked. And to be brutally honest, I do not want any more of my code or ideas stolen by other developers during this doldrum period. Currently I’m only selling copies of Pro Gallery 4 privately to a few select / trusted people to use in the Stacks plugin. The same applies to several other completed addons I’m holding back on.

3 Likes

Seems a reasonable approach. Thanks.

No, it isn’t. It’s inStacks Software | Gallery Stack 3 - The most versatile and kick-ass Photo Gallery

We found a solution here: