Captions Not Accepting HTML / Line Breaking
leftquark
Registered Users, Retired Mod Posts: 3,784 Many Grins
It appears that the caption section below my photos in the New SM is doing weird things:
The line breaks is killin' me though. It looks awful to have my nicely formatted captions squished into one big block.
Any way to fix this?
- Not following the line breaks entered in the EXIF or manually entered in the caption box
- Not following the font HTML tag that I have set
The line breaks is killin' me though. It looks awful to have my nicely formatted captions squished into one big block.
Any way to fix this?
dGrin Afficionado
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
0
Comments
For each new line I use the paragraph tag
like this
It's some kind of a walk-around, and I'm no html expert (I basically know how to use bold and underline...)
You can also just put <br> at the end of the line. It's marginally easier than using <p> tags
Here's a similar thread: http://dgrin.com/showthread.php?t=237309
I hope this is fixed soon... I just sent a support email.
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
I picked this up along the way of learning a little code:
As far as the line break...I use a <br> everywhere in the caption field that I want the line to break. Give that a try. If you want two lines, I use <br><br> and so on. The <br> is not <html> dependent.
I have hundreds of photos with many line-breaks. There's no way I'm going through my entire site, spending hours adding <BR> tags all over. That's just rediculous. A SmugMug support hero mentioned he would file this as a bug
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
Cool!
tags for me).
I wonder if SmugMug just fixed it, or if it's only fixed for new captions and still broken for your old ones? Or maybe you guys are talking about a different place that the caption appears? (be sure to include a link to an offending page!)
Please check out my gallery of customisations for the New SmugMug, more to come!
They fixed it.
Sent from my S3 using Tapatalk 4
Lamah,
It does not appear to be fixed, unfortunately. If HTML is added to the caption the <BR>'s are no longer automatically added. If I take out the HTML, my captions display properly with <BR>'s added (when it's displayed). No <BR>'s get added to my caption if I go to edit -> photo details. If I add the HTML back in, the <BR>'s no longer get added when they're displayed.
I haven't unveiled so I can't link anything.
Still a bug
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
What you probably want to do is to apply CSS that causes linebreaks in captions to cause linebreaks on the page:
However, if your caption *doesn't* have any HTML in it (so SmugMug has injected <br> tags for you), you'll end up with double-spaced lines (since both mechanisms will be adding linebreaks).
You can disable all <br> tags inside captions to prevent the double-up, with the caveat that it will also hide the <br>s you've manually entered in your captions:
Finally, you can restore the action of <br>s that you manually add to captions (if you need to use those for some reason) by marking those with a class name, like <br class="keep">, and adding this CSS:
Please check out my gallery of customisations for the New SmugMug, more to come!