Jump to content

Block Word Breaks Across Entire Site

Recommended Posts

Posted

Hi, I've tried a bunch of existing codes but cannot get 'Geneseo' to go on one line for mobile. The text block is a markdown. 

Ideally, I'd like to block word breaks across the entire website but this home page headline is most important.

Screen Shot 2023-08-08 at 12.00.20 PM.png

Posted
41 minutes ago, brittanystatt said:

Ideally, I'd like to block word breaks across the entire website but this home page headline is most important.

You can do that, but the alternative is that the title will disappear off the screen, or cause an overflow.

Can you share your website URL?

Have you tried setting the title font size on mobile to a vw value that will scale based on the screen width, or maybe using the text expand option that scales the text to fit the block?

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?

Posted

I would try a media query for (max-width:767px) for h5 with a font-size set to 12vw.

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?

Posted

You can try this, but it depends on how you've set up markdown, this CSS is quite generic soyou may want to add a class to you code so we can target just the correct H5 headings:

@media only screen and (max-width:767px) {
  h5 {
    font-size:12vw;
  }
}

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?

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.