Jump to content

Turn off hyphenation in Brine template

Recommended Posts

Hi all, I'm aware that turning off hyphenation has been looked at elsewhere (for example, https://answers.squarespace.com/questions/37904/turn-off-automatic-hyphenation.html).

But I'm struggling to get that particular code working on the Brine template that I'm using. Hyphens are causing some odd results on mobile, and I'm sure forcing the whole word to the next line will be an improvement. I have tried injecting the following code on the relevant index pages:


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

I've also tried replacing 'manual' with 'none' (as suggested in another thread), without luck.

You can see the site here: https://dominic-mcinerney.squarespace.com/home/

Any advice would be greatly, greatly appreciated!

Link to comment
  • Replies 12
  • Views 8.3k
  • Created
  • Last Reply

Hey Octopus, thanks for this. I really appreciate it...caniuse.com is a handy site.

Unfortunately, no luck. The problem occurs on iphone 6 using Chrome (which doesn't support hyphen control) but weirdly also occurs using IOS Safari (which does support it). If I use a browser emulator with the above device / OS, the problem doesn't replicate.

I'm injecting the code onto individual pages sitting under an index page, but not the index page itself. If I inject it into the index page, the text of the code appears at the top of the website (desktop and mobile).

Any other ideas appreciated! :)

Link to comment
  • 1 year later...

I hope you found your answer already, but if not, did you try using the code you already tried and inserting it sitewide instead of on the specific index pages? I'm using Wav which is in the same family as Brine, and adding the above code to Custom CSS instead of the page header injection did the trick!

Link to comment
  • 4 weeks later...
  • 4 weeks later...

adding one more comment that I just added the code above in my custom CSS (I only used h1 to stop hyphenation of headings in mobile) and it worked for me in the Polaris template, which is part of the Brine family

motion graphic designer in SoCal - feel free to check out my site (built on the Polaris template): [motion graphic design by jonberrydesign][1] [1]: http://jonberrydesign.com

Link to comment

adding one more comment that I just added the code above in my custom CSS (I only used h1 to stop hyphenation of headings in mobile) and it worked for me in the Polaris template, which is part of the Brine family

motion graphic designer in SoCal - feel free to check out my site (built on the Polaris template): [motion graphic design by jonberrydesign][1] [1]: http://jonberrydesign.com

Link to comment
  • 8 months later...
  • 1 month later...
  • 1 month later...
  • 4 months later...
  • 7 months later...

Archived

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

Guest
This topic is now 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.