Jump to content

Making gallery grid image titles go onto a new line instead of hiding it

Recommended Posts

Site URL: https://sprout-tuna-swnf.squarespace.com/presentation-creation

I've added a grid of small images with titles underneath them. The problem is hen the title is too long, it goes into an ellipses and only shows part of it. I tried taking out the "overflow: hidden" rule, but then the titles just overlap onto one another. What I want is for the titles to go onto another line if they don't fit on one. Is that possible?

The page is https://sprout-tuna-swnf.squarespace.com/presentation-creation

tab 2.PNG

Link to comment

Add to Home > Design > Custom CSS

div#block-yui_3_17_2_1_1594977105705_12297 .image-slide-title {
    overflow: visible !important;
    white-space: initial !important;
    line-height: 18px;
}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 7/23/2020 at 3:33 AM, JGOG said:

Hi Tuanphan,

 I have the same issue, but when I enter the code above I am getting a syntax error note. Any suggestions?  my titles are at 12px 

 

Screen Shot 2020-07-22 at 4.33.06 PM.png

Can you post all code here & share link to your site?

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 4 months later...
5 hours ago, ashleemundywebsitede said:

This worked wonderfully! Thank you! Any way to make the subtitle text show up under the title font on a grid gallery? 

try adding

display: block !important;

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 5 months later...

Hi there, I have the same problem but the code suggestions above aren't working for me. This is my site: 

https://www.zeitgeistagency.com/

On the home page I've used a gallery grid for the "SIGNED & COMING SOON..." section and would like the titles to run over two lines. I'd also like part of the titles to be italicised, eg. "Courtney Act, It's All An Act

 

 

 

Screen Shot 2021-06-02 at 3.03.59 pm.png

Link to comment
On 6/2/2021 at 12:05 PM, michellemcbalogh said:

Hi there, I have the same problem but the code suggestions above aren't working for me. This is my site: 

https://www.zeitgeistagency.com/

On the home page I've used a gallery grid for the "SIGNED & COMING SOON..." section and would like the titles to run over two lines. I'd also like part of the titles to be italicised, eg. "Courtney Act, It's All An Act

 

 

 

Screen Shot 2021-06-02 at 3.03.59 pm.png

Try editing title to this

Quote

Courtney Act, <p><em>It's All An Act</em></p>

If it doesn't work, keep the code & let me know. WE can check easier

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.