Help with Captions

frissonfrisson Registered Users Posts: 22 Big grins

This has probably been answered somewhere before...
I am trying to find if there is a way to force a new line in the captions field that overlaps the image. If I insert a new line in the details editor in the lightbox or using the Lightroom caption interface it shows up fine in the lightbox itself. But for the caption on the image itself nothing happens... the text just continues on in the same line.

thanks
wapiza

Comments

  • JtringJtring Registered Users Posts: 675 Major grins

    You might see if the captions field responds to the non-breaking space character (&nbsp). I've used those to force desirable line break positions in gallery titles on a folder display page, but I've not tried it with captions on top of the image (which I don't use). In a quick test, captions below an image do seem to respect the non-breaking spaces even though they ignore line feeds. To be sure, using non-breaking spaces to force the line break position you want is mighty indirect and a pain to do.

    Jim Ringland . . . . . jtringl.smugmug.com
  • AllenAllen Registered Users Posts: 10,013 Major grins
    edited May 27, 2020

    I use this in a caption to push long captions off the screen so only see the first few words show in lightbox.
    I use a number of space characters as needed. Then in CSS I hide the class in the gallery caption and lightbox info caption.

    <br><span class="showLBtitle"> &nbsp; ... &nbsp; </span>

    example:
    https://www.photosbyat.com/Birds/Missouri-Bird-Photos-A-G/i-Mrg8Z6F/A

    Other then that I've found no way add any line breaks.

    Al - Just a volunteer here having fun
    My Website index | My Blog
  • BigRedBigRed Registered Users Posts: 288 Major grins
Sign In or Register to comment.