Jump to content

the captions of the images in the gallery section are cut off on mobile version

Go to solution Solved by Ziggy,

Recommended Posts

Hello, I see that the captions of the images must be customized in CSS. I was able to separate the lines and put the first line of the caption in black via CSS.

The problem I have is that in some long titles the text appears cut off in the mobile version (see below)

What would be the code to solve this problem?

I would really appreciate it if you could help me 

sample.jpg

Link to comment

Can you share your website URL and this page? Thanks!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Interesting, can you share the Custom CSS that you are using?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
  • Solution

You could try this tweak of your CSS, but it won't correctly apply the bold to the title, just the first line, which on the longer titles is not the whole title.

.gallery-caption p {white-space:pre-wrap;}
.gallery-caption p:first-line {color: black; font-size: 1rem; font-weight:bold;}

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
4 hours ago, Ziggy said:

You could try this tweak of your CSS, but it won't correctly apply the bold to the title, just the first line, which on the longer titles is not the whole title.

.gallery-caption p {white-space:pre-wrap;}
.gallery-caption p:first-line {color: black; font-size: 1rem; font-weight:bold;}

Thank you so much! This helped me for all the text.

Since it didn't apply correctly to the first bold line of the title, what I did was add the <b> tag in the title in the description section inside the edit gallery.

Thanks!

Link to comment
  • 1 year later...
On 5/30/2024 at 9:31 PM, Bell6650 said:

I'm having an issue with gallery captions being cut off as well. I'm using gallery slideshow:simple set to height L. The captions look great in desktop but get cut off in mobile. Any insight on how to fix this?

https://www.katiebottrell.com/strategy-work

image.thumb.png.f03bf08380877386a64e3b5054ec70c3.png

Use this code

 

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

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.