Caption don't allow HTML code. Am I right?
david-low
Registered Users Posts: 754 Major grins
While it is possible to use HTML code for gallery description, it seems HTML code is not recognised for individual picture caption. Is that coorect?
My gallery: http://david-low.smugmug.com
0
Comments
What have you tried? I just tried bolding a word and I tried embedding a link in a photo caption using an <a href= statement. Both were successful.
Musings & ramblings at https://denisegoldberg.blogspot.com
Just paragraphing
Doesn't work on individual photo. Same code was tested on gallery description and it works
I put in any <p> ... </p> and it saves but it locks the caption and can not edit. Nothing clickable.
Have to go into tools > Open in Editor > Title, Captions and Keywords to edit.
My Website index | My Blog
Bold seems OK outside of the Paragraph block.
PS and non sequitur:
How big is your cat? (The cat that ate the wolf. )
Moderator of the Cameras and Accessories forums
Here's typical HTML I use in captions. Example of one typical caption.
My Website index | My Blog
My standard gallery style is collage landscape. I've observed that some HTML, such as the < a > tag, works in the lightbox but does not work in the smaller collage landscape style caption displays. As Allen notes, some HTML does works in SmugMug gallery style displays. I'm not sure that all HTML is accepted.
Added note: This one's been around before. See https://dgrin.com/discussion/249671/anchor-tag-in-collage-landscape-gallery/p1
Both screen shots taken fr abv link. One SM hero said can but must upgrade to power ac, yet another said can't. Confused.
I use html in my captions all the time!
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
.
Instagram
Twitter
So can SM clarify once and for all can or cannot. I hv a pro account and between SM heros each of them said different things.
It would be helpful to have a list of supported HTML.
But - from the examples shown in this thread, it appears that paragraphs aren't supported and items like italics, bold, and links are.
Musings & ramblings at https://denisegoldberg.blogspot.com
I Just retried paragraphs <p> and it worked this time. ????
My Website index | My Blog
In, I observe, SmugMug style galleries.
The message from McKsauce in 2014, cited above, matches what I'm seeing in 2018.
(For an example, see the third image in this gallery. There's an anchor tag in the caption. It doesn't show in the Collage Landscape display. It does show in the lightbox.)
I can't cope up with so many variations. Selectively some display style can, while others can't. Then some code can and some code can't. Sigh.
Just added this to a caption:
Then added some CSS to my theme's CSS:
Works fine...
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
May I ask which gallery style you are using. In the 'Collage Landscape' style, I seem unable to make any added html work.
Interestingly enough, any 'formatting' I enter in the caption is picked up in the Lightbox...w/o any html added.
Collage Landscape.
If you need help, you'll need to post your website/gallery.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Wow, talk about wildly inconsistent.....
1) It seems in 'SmugMug Gallery Style' and 'Journal' style, no html formatting is even necessary....for line breaks & paragraphs anyway. For bold, italicize, and href type stuff presumably it is. The caption follows whatever formatting I type in the caption for line breaks & paragraphs.
2) For the 'Collage' styles (both), adding html code for formatting line breaks just doesn't work at all. Haven't tried yet for href and/or bold/italicize formatting.
a) And at least for the Collage Landscape style where the 'Info Text' is placed in the Button Bar, there seems to be no means available to even view the entire caption beyond the 2-3 lines of space allotted by the Button Bar. If, for example, I enter a caption something similar to the following, much of the 'image description' piece cannot be viewed.
Location: Somewhere, USA
Date Captured: 01/01/01
With Caption info similar to the above, much of the 'descriptive info' can't be seen in the gallery for Collage Landscape style. It is viewable in the Lightbox, 'but'......
This is going to take some rethinking.
Just did some testing on my test gallery. I added this to my captions:
I added this to a CSS block:
This is what I found:
Thumbnail Gallery, Collage Landscape and Collage Portrait strips HTML/CSS. All other gallery styles retain their HTML/CSS. All gallery styles retain their HTML/CSS in the lightbox.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
RE: HTML in Captions
[SNIP]
Apologies if I missed a more recent thread on this. Does anyone know why this inconsistency exists, and what the plan is for eliminating it? For my particular site, I need tags for italics and links to be rendered correctly in Collage Landscape galleries.
For Collage and Thumbnail galleries: 1-2 lines of the caption aren’t appropriate to have formatting in them when displayed on top of the photo in the “bottom bar”. Captions on top of photos is not a great way to read the caption of the photos and visitors have frequently told us that they both don’t read nor retain the information when it’s displayed there. They do, however, enjoy that it lets them know a caption exists, which they can then read by opening the photo larger (in Lightbox). When the photo is opened in Lightbox, your HTML formatting will be retained and displayed in the caption sidebar.
For SM and Journal, since the full caption is displayed below the photo, the HTML formatting is retained.
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
Gotta push back a little here.
I think that viewpoint depends on one rather specific vision of how someone will put their site together. Collage galleries allow the caption to be below the photo as well as on top of it. In the collage galleries, images can be large, X-large, or even X2-large. Throw in the two lines for caption text (and another for a title) and there's lots of space down there for information ... and lots of opportunity for creating alternate approaches for interacting with the main gallery display. On my site, I view the main collage view as the primary place to "tell the story". Several captions on the screen at once lets the story be built from the running sequence. One photo can refer to another steps ahead or behind. A viewer can look backwards or forwards easily to make or review connections. That's a different model, of course, from having each image tell its own self-contained story. Neither is model is superior. It depends on how the story teller wants to have at it. SmugMug has provided tools to let folks tell their stories in many different ways -- that's one of SmugMug's great strengths -- and the arguments for turning off HTML are not consistent with some of the options you've opened.
Where would you say we’re inconsitent on the turning off of HTML?
Views in which the entire caption is displayed, present the caption with HTML included.
Views in which a snippet of the caption is displayed, parse the HTML out.
If we’re not doing this somewhere, I’ll be happy to make it function consistently by updating those areas to remove the HTML.
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
Consistency depends on perspective. I think from a developer perspective you've staked out a consistent position, which, in implementation, can present a site viewer with an inconsistent experience. It's quite possible in the collage views with large, X-large, or X2-large images and relatively short captions placed below the image for the site viewer to be presented with complete captions. That's not to say it has to be that way. But that's what a site owner can arrange for a site viewer to see. Now consider the experience of that site viewer. She sees no HTML in the full caption displayed in the collage landscape view, but then in the lightbox sidebar she sees links, bolds, and italics mysteriously appear. She sees an inconsistency. And her experience is more important than yours as developers.
If people know HTML and want to use it why are you refusing that option?
My Website index | My Blog
I agree with Jim. In addition to putting captions below the images, I'd like to point out another example of how a site owner's implementation choices can exacerbate this inconsistency. We have the option in Settings to entirely turn off captions in the Lightbox (to focus exclusively on the image), so the gallery becomes the sole location for caption info (sometimes length-limited, but not merely a teaser for the Lightbox).
Caption content can be very format-dependent, and the results of stripping out the HTML can be quite destructive. On my site, for example, words in my captions that are REQUIRED to be italicized (per scientific standards), or that are labels for useful external links, end up presented in a way that makes the captions impossible to read (not only truncated). Looks sloppy and amateurish. So, although I found the Collage Landscape style appropriate in many ways for a few of my galleries, I'm forced to abandon it.
I can see no justification for SM to "turn off" HTML in Collage gallery style captions. I believe that caption text formatting should always be up to the site owner.
Seems like this issue is comparable to the recent debate on this forum about the Lightbox design -- the moral of the story being that different purposes are legitimately served by different caption presentations.
This post somehow revived while I already took notice more than a yr ago. Lol
My galleries are in Collage Portrait and show the complete captions. Yet the HTML is stripped out. I don't understand why, because Leftquark above tells us that HTML will work when entire captions are shown. I need Italic in situations where it is required.
Paul,
Can you include a link to the photo in question? I tested an i and b tag in a caption on my gallery and it's displaying the text formatted fine.
SmugMug Support Hero