UPDATED: Gallery/Folder Titles and Captions Now Display a 2nd Line
leftquark
Registered Users, Retired Mod Posts: 3,784 Many Grins
All,
Up until now, Gallery and Folder Titles would only display 1 line of text. If the titles were longer, we would cut it off and add "...". As of today, we now display 2 lines of the title, and then append the "...". If you need more space for the titles, you could increase the size of the photo used, or use some of the CSS customizations available. This new update works for all styles: Grid, Collage Landscape, etc.
I did notice there were some conflicts with my CSS that I had previously added to my pages. If you notice any conflicts, I recommend commenting out (using /* */) the old code until you verify everything is set.
Additionally, some other customizations may be impacted, such as the centering of titles. I've provided an update to my own Title Centering CSS Customization here: http://www.aaronmphotography.com/Customizations/Sitewide/Center-GalleryName-Text
Up until now, Gallery and Folder Titles would only display 1 line of text. If the titles were longer, we would cut it off and add "...". As of today, we now display 2 lines of the title, and then append the "...". If you need more space for the titles, you could increase the size of the photo used, or use some of the CSS customizations available. This new update works for all styles: Grid, Collage Landscape, etc.
I did notice there were some conflicts with my CSS that I had previously added to my pages. If you notice any conflicts, I recommend commenting out (using /* */) the old code until you verify everything is set.
Additionally, some other customizations may be impacted, such as the centering of titles. I've provided an update to my own Title Centering CSS Customization here: http://www.aaronmphotography.com/Customizations/Sitewide/Center-GalleryName-Text
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
With your change the 3rd line is mostly hidden. Is your new CSS more !important then this?
In "all folders" CSS
.sm-tiles-grid ul li a p {
font-size:95%!important;
padding-left:0!important;
padding-right:0!important;
color:gold!important;
text-align:center;
overflow:visible!important;
white-space:normal!important;
height:auto!important}
example
http://www.photosbyat.com/Birds/2006-Birding/Birding-2006-July-August
Looks like I need this added but auto height is not working.
line-height: 10pt;
My Website index | My Blog
is added. I can not find where this is applied. Any help?
Or more left padding then right shifting all to the right.
Or whatever, they're not centering.
My Website index | My Blog
Looks like maybe it's reserving space for the page/folder/gallery icon, even if hidden with CSS??
My Website index | My Blog
My longer titles are not showing the "..."
Previously, this code of yours (see here) would not only hide the icons but would also free up space for the titles (which it doesn't do any more)
How can I get 3-4 line wrapping reinstated for gallery thumbnails?
EDIT to add example, 4th gallery in this folder: http://www.joinrats.com/ModifyBehavior
Thank you! I like this change
The change also applies to captions. One interesting quirk of this latest change is that the mechanism SM used to allow for 2 line captions is a little different for webkit browsers (like Chrome) and non-webkit browsers (like Firefox). This change required me to patch my site's CSS and I though I'd share it. This is meant as a starting point for others who like to play with this stuff. I expect most sites would need to diddle with this rather than use it directly. (Unfortunately, I've learned the hard way that I'm not really skilled enough to write bullet-proof CSS that always works on other folks sites, so allow me to respectfully decline in advance if you need for customization help.) Anyway, here's what I have:
Notes:
Added note: My site places the captions below L-sized thumbnails in a collage landscape gallery layout, which is what the above was written to address. I'm not sure what would happen if one applied this to a site with captions on top of the thumbnails or with really small thumbnails. Because I use "grid" for the navigation content boxes on pages and folders, the above doesn't apply there. However, the same lower-level classes apply to displays both in galleries and in the navigation content boxes, so if the grid model were used for both, it is possible to write CSS code that adjusts both. (And working through all of that illustrates why writing general bullet-proof add-on CSS is such an art.)
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
Yay! Definite improvement.