Jump to content

Text is splitting a word across two lines on mobile, leaving one letter hanging – how to fix?

Recommended Posts

Site URL: https://connectedcampers.squarespace.com/

Hey Squarespace community,

looking for a little help on how to fix this, or recognition of a bug that needs ironed out at Squarespace side. In passages of text, when looking at the site on mobile, I'm seeing it split words across two lines, forcing a single letter on it's own to the line below. Very odd and surely it's programmed to line break entire words (or atleast hyphenate them if there's a line split).

See the screenshot attached.

Hopefully some of you can help me to figure this out as I'm a little stuck and puzzled with this one!

Website: https://connectedcampers.squarespace.com/
Pass: sillysausages

All the best,
Asa

IMG_1627.PNG

Link to comment
On 9/15/2021 at 4:41 AM, tuanphan said:

Hi,

Where is text? I don't see it on above link

Hi Tuanphan, thanks for getting back on this. Sorry it was on one of the sub-pages:

https://www.connectedcampers.com/features

We changed the copy, to allow the site to go live against pressing deadlines (I'm sure you understand), but obviously it's an odd feature and a strange behaviour for a site to split a word without a hyphen. Have you seen it before? Are you aware of any ways to avoid it?

Link to comment
On 9/21/2021 at 11:44 PM, asa said:

Hi Tuanphan, thanks for getting back on this. Sorry it was on one of the sub-pages:

https://www.connectedcampers.com/features

We changed the copy, to allow the site to go live against pressing deadlines (I'm sure you understand), but obviously it's an odd feature and a strange behaviour for a site to split a word without a hyphen. Have you seen it before? Are you aware of any ways to avoid it?

Try adding this to Design > Custom CSS

p,h1,h2,h3 {
    -webkit-hyphens: manual !important;
    -moz-hyphens: manual !important;
    -ms-hyphens: manual !important;
    hyphens: manual !important
}

 

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
10 hours ago, tuanphan said:

Try adding this to Design > Custom CSS

p,h1,h2,h3 {
    -webkit-hyphens: manual !important;
    -moz-hyphens: manual !important;
    -ms-hyphens: manual !important;
    hyphens: manual !important
}

 

Fabulous thank you, I'll give this a shot.

Thanks,
Asa

Link to comment
  • 1 year later...
On 3/8/2023 at 1:39 AM, acjr_noob said:

Add to Design > Custom CSS

/* resize text on mobile */
@media screen and (max-width:767px) {
.fe-block-8ebc50ca4332a254e1b5 h1 {
    font-size: 40px;
}
}

 

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

@tuanphan 

Is the code just forcing the text to stay at a certain size? New problem that arose is the text isn't flexible anymore so the margins no longer match and we have giant gaps when I turn to landscape mode on a mobile device.

The idea is to keep that text as large as possible to mimic the desktop styling best we can for the home page.
 

IMG_3713.PNG

IMG_3715.PNG

Edited by acjr_noob
Link to comment
On 3/11/2023 at 1:32 AM, acjr_noob said:

@tuanphan 

Is the code just forcing the text to stay at a certain size? New problem that arose is the text isn't flexible anymore so the margins no longer match and we have giant gaps when I turn to landscape mode on a mobile device.

The idea is to keep that text as large as possible to mimic the desktop styling best we can for the home page.
 

IMG_3713.PNG

IMG_3715.PNG

With landscape mode, you can use this new code

/* resize text on mobile */
@media screen and (max-width:767px) {
.fe-block-8ebc50ca4332a254e1b5 h1 {
    font-size: 40px;
}
}
@media screen and (max-width:767px) and (orientation:landscape) {
.fe-block-8ebc50ca4332a254e1b5 h1 {
    font-size: 60px;
}
}

 

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

Thank you so much for your assistance!

Don't hate me but one more add-on that is nitpicky... can we match the margin? Like I mentioned the idea is to replicate the large text on the homepage so this detail will be great for first impressions. Please and thank you! 🙏

Mobile-vertical.png

Link to comment
On 3/16/2023 at 7:23 PM, acjr_noob said:

Thank you so much for your assistance!

Don't hate me but one more add-on that is nitpicky... can we match the margin? Like I mentioned the idea is to replicate the large text on the homepage so this detail will be great for first impressions. Please and thank you! 🙏

Mobile-vertical.png

You try increase text size in above code, I think that is only way

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
On 3/22/2023 at 11:58 PM, acjr_noob said:

I tried and it doesn't work on my side. 😪 also seeing text splitting on other pages?

Here is the website: https://www.acjr.network/

Screenshot 2023-03-22 at 12.36.50 PM.png

That code works on one page only, which pages do you have problems with?

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
On 3/26/2023 at 2:37 AM, acjr_noob said:

That would explain it! I will need for all pages then in the event someone other than me applies changes.

If you need on all pages, try this new code

/* resize text on mobile */
@media screen and (max-width:767px) {
h1 {
    font-size: 40px !important;
}
}
@media screen and (max-width:767px) and (orientation:landscape) {
h1 {
    font-size: 60px !important;
}
}

 

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
  • 1 month later...
On 5/19/2023 at 7:44 AM, dmharris34 said:

@tuanphan I am having the same type of issue with my headers throughout my entire website. I would like it to not push letters onto the next lines. It's mostly when scaling it from desktop to mobile, but not an issue when it's at mobile. Screenshot attached is when scaling the homepage.

Sunsetlake.org

 

Screenshot 2023-05-18 at 5.40.20 PM.png

Which screen size do you see problems? We can use CSS code to resize text on these screen sizes

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.