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

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.

Link to comment
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 (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.