homogenic Posted March 13, 2023 Share Posted March 13, 2023 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 Link to comment
Ziggy Posted March 13, 2023 Share Posted March 13, 2023 Can you share your website URL and this page? Thanks! homogenic 1 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
homogenic Posted March 13, 2023 Author Share Posted March 13, 2023 3 minutes ago, Ziggy said: Can you share your website URL and this page? Thanks! Hi, Ziggy! This is the URL: https://violet-fuchsia-2h98.squarespace.com/obras I hope you can help me! Ziggy 1 Link to comment
Ziggy Posted March 13, 2023 Share Posted March 13, 2023 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
homogenic Posted March 13, 2023 Author Share Posted March 13, 2023 2 minutes ago, Ziggy said: Interesting, can you share the Custom CSS that you are using? This is the Custom CSS: .gallery-caption p {white-space:pre} .gallery-caption p:first-line {color: black; font-size: 1rem; font-weight:bold} Link to comment
Solution Ziggy Posted March 13, 2023 Solution Share Posted March 13, 2023 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;} homogenic 1 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
homogenic Posted March 13, 2023 Author Share Posted March 13, 2023 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! Ziggy 1 Link to comment
Bell6650 Posted May 30 Share Posted May 30 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 Link to comment
tuanphan Posted June 1 Share Posted June 1 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 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment