If a caption contains no text (only HTML code) it is not displayed
thenickdude
Registered Users Posts: 1,302 Major grins
In some photo contexts, like when a photo appears in a Multiple Photos block, SmugMug strips out all the HTML code from the photo's caption for display in the Info Bar, basically just removing anything inside angled brackets to leave only the text.
In other contexts, like underneath the image in a SmugMug-style gallery, or in the Lightbox, SmugMug shows the complete HTML version of the caption.
However, if a caption contains only HTML tags, and no text, then underneath the image in a SmugMug-style gallery, and in the Lightbox, SmugMug incorrectly decides that the caption is empty, and so does not display it, even though HTML is allowed to appear there.
For example, if I give my photo this caption:
As shown here:
http://n-sherlock.smugmug.com/Test-gallery/i-W55ZnS7
No caption appears under the image, and in fact opening the Photo Details menu again shows a blank box for the Caption. If instead I enter the caption:
(which has a single full-stop added on the end to make sure it is non-empty after HTML removal), then the caption is displayed fine, as shown here:
http://n-sherlock.smugmug.com/Test-gallery/i-2pFbBZr
In other contexts, like underneath the image in a SmugMug-style gallery, or in the Lightbox, SmugMug shows the complete HTML version of the caption.
However, if a caption contains only HTML tags, and no text, then underneath the image in a SmugMug-style gallery, and in the Lightbox, SmugMug incorrectly decides that the caption is empty, and so does not display it, even though HTML is allowed to appear there.
For example, if I give my photo this caption:
<img src="https://www.google.co.nz/images/srpr/logo4w.png"/>
As shown here:
http://n-sherlock.smugmug.com/Test-gallery/i-W55ZnS7
No caption appears under the image, and in fact opening the Photo Details menu again shows a blank box for the Caption. If instead I enter the caption:
<img src="https://www.google.co.nz/images/srpr/logo4w.png"/>.
(which has a single full-stop added on the end to make sure it is non-empty after HTML removal), then the caption is displayed fine, as shown here:
http://n-sherlock.smugmug.com/Test-gallery/i-2pFbBZr
https://www.sherlockphotography.org/
Please check out my gallery of customisations for the New SmugMug, more to come!
Please check out my gallery of customisations for the New SmugMug, more to come!
0