Jump to content

Is there a way I can reduce the number of characters within a text block when displaying on mobile devices?

Recommended Posts

Posted

I am using an image card wrapper template which looks great on desktop but when we get down to mobile the text content is far too long and stretches the wrapper which makes it a difficult experience for the end user. I wondered if there was a way to target these particular blocks that allowed me to reduce the number of characters contained within the text block so that it doesn't stretch the wrapper. Any help or advice would be greatly appreciated, thank you very much.

  • Replies 2
  • Views 361
  • Created
  • Last Reply
Posted
26 minutes ago, CPharmacyScot said:

I am using an image card wrapper template which looks great on desktop but when we get down to mobile the text content is far too long and stretches the wrapper which makes it a difficult experience for the end user. I wondered if there was a way to target these particular blocks that allowed me to reduce the number of characters contained within the text block so that it doesn't stretch the wrapper. Any help or advice would be greatly appreciated, thank you very much.

First you need to target the text block id using this

https://chrome.google.com/webstore/detail/igjamfnifnkmecjidfbdipieoaeghcff

and try some approaching to apply text overflow via css

Line Clampin' (Truncating Multiple Line Text) | CSS-Tricks

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.