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!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark 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!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark 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!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark 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

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.