Jump to content

7.0 Image title wrap in gallery view

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://christinabalch.com/cm-gallery-image-text-example

Hi Circle - I'm trying to get the image title to wrap onto multiple lines instead of cutting off in the gallery grid layout. Ideally the image title will wrap and display on 2 or 3 lines depending on the browser width. I want this to be a universal update so all gallery grids function the same on the website. I don't mind if some of the rows are longer than others in the gallery grid.

This is something I will no doubt need to do again as this is a common layout for artist websites.

This site appears to have figured it out in the masonry layout, but I can't seem to locate the proper class(es) to get it to work on my sites. https://www.thecarolamoon.com/brand-photography-portfolio 

Example site below uses Avenue 7.0, but I will ultimately be implementing this change on a site using Brine in 7.0.

https://christinabalch.com/cm-gallery-image-text-example
password: test!

Screen Shot 2021-01-05 at 09.11.31.png

Link to comment

hi - thanks for the suggestion! it was a huge help and i've made some progress.

with the following css, the title text overflow appears, but it's still not wrapping. any ideas? i could maybe use some good old-fashioned line breaks to solve this temporarily, but i'd love to find a responsive solution.

side inquiry for future projects: is this issue of long image titles resolved in 7.1 for collections? 

.image-slide-title {
  overflow: visible !important;
  white-space: pre-wrap;
}

 

Screen Shot 2021-01-07 at 14.27.35.png

Link to comment
  • Solution
On 1/8/2021 at 2:32 AM, christinabalch said:

hi - thanks for the suggestion! it was a huge help and i've made some progress.

with the following css, the title text overflow appears, but it's still not wrapping. any ideas? i could maybe use some good old-fashioned line breaks to solve this temporarily, but i'd love to find a responsive solution.

side inquiry for future projects: is this issue of long image titles resolved in 7.1 for collections? 


.image-slide-title {
  overflow: visible !important;
  white-space: pre-wrap;
}

 

Screen Shot 2021-01-07 at 14.27.35.png

Add to Design > Custom CSS

div.image-slide-title {
    white-space: initial !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 year later...
On 1/16/2021 at 11:09 PM, tuanphan said:

We help here for free. If you want to donate, you can send more questions via my signature, and you can send later ☘️

I see blank item here. Do you want to fix?

image.thumb.png.765f5ef9e335bce519f6f3c7ea8cd69c.png

I followed this thread to apply text wrapping to two column gallery display on mobile -- getting the same blank spaces between some images in the layout as pictured above -- would like a possible fix as well.
(seems to affect images in the third column) 🤷🏻‍♂️
thanks

example of my issue:  https://www.chuckgumpert.com/earthenworks
image.thumb.png.a70e95d099301c69ac53d7a324bebdb2.png
 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.