Number of lines displayed in gallery thumbnail caption
gfargo
Registered Users Posts: 21 Big grins
I have put in the CSS from a post here to insert line breaks in the caption for gallery thumbnails (collage landscape). Now it only displays the first two lines. Does anyone know how to get more, say 3 or 4?
Thanks, George
0
Comments
What is the CSS you used and what is your site?
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
this code from Aaron:
.sm-gallery-image-container .sm-tile-info, .sm-lightbox-caption,
.sm-gallery-images .sm-tile-info, .sm-lightbox-caption {
white-space: pre-wrap;
}
/* Disable all BR tags */
.sm-gallery-image-container .sm-tile-info br, .sm-lightbox-caption br,
.sm-gallery-images .sm-tile-info br, .sm-lightbox-caption br {
display: none;
}
I have backed it out.
https://sscva.smugmug.com/Artists/George-Fargo/
sorry missing a / :
/◦Force linebreaks to have a break */
.sm-gallery-image-container .sm-tile-info, .sm-lightbox-caption,
.sm-gallery-images .sm-tile-info, .sm-lightbox-caption {
white-space: pre-wrap;
}
/* Disable all BR tags */
.sm-gallery-image-container .sm-tile-info br, .sm-lightbox-caption br,
.sm-gallery-images .sm-tile-info br, .sm-lightbox-caption br {
display: none;
}
I guess I'm missing something, but I'm not seeing captions on that page.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
under the first photo - Title is "70s Steamboat", Caption is "Gallery wrapped canvas 20x30 $690" There is a line break between canvas and 20 and between 30 and $. The breaks are honored in the lightbox. Click on the photo to see this. I want the title and Caption to appear as they do in the lightbox. I inserted the CSS as shown and the breaks were honored but only the first two lines showed. $690 disappeared. I figured it was the size of the caption box or number of lines , but can't seem to fix it.
Thanks for helping,
George
I understand now. Try adding this:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
That works! Thanks so much Mike.