Resolved

Hyphenation

Ultra Theme started by Tricia Jun 3, 2016 7 replies
Tricia Jun 3, 2016 · 7:27 pm #3642

How do I remove line hyphenation throughout the site? If a word needs to move to the next line (due to resizing the screen, for example), I’d like the entire word to move to the next line. Can you provide css code for this (to include in Custom CSS)? Thank you!!

Andrew Misplon Puro Jun 3, 2016 · 7:40 pm #3643

Hi Tricia

Thanks for reaching out. Sure, go to Appearance > Custom CSS and insert:

/* Paragraphs */
.entry-content p {
    hyphens: none;
}

Does that work? If not, can you send a link to the page concerned. You can use the Set as private reply checkbox below if required.

Tricia Jun 3, 2016 · 8:57 pm #3647

Yes, that worked on most of the text. However, it didn’t work in one area — I am using SiteOrigin Editor with an “H5” style and an “H1”, so the “.entry-content p” didn’t work for that. I tried using this in the style sheet

/* Paragraphs */
.h5 {
hyphens: none;
}

But that didn’t work. Do you have any suggestions? My site isn’t currently available to share with you, but I hope to take care of that in the next few weeks.

Thanks Andrew!

Andrew Misplon Puro Jun 3, 2016 · 8:59 pm #3648

Glad that partially helped, try adding:

/* Headings */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5 {
	hyphens: none;
}
Tricia Jun 3, 2016 · 9:28 pm #3652

hmmm, no this didn’t work. that makes sense to me, but not doing the trick.

Andrew Misplon Puro Jun 3, 2016 · 9:31 pm #3654

If you’re using Firefox then that might explain it, try the following:

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
	-moz-hyphens: none;
  	-ms-hyphens: none;
  	-webkit-hyphens: none;
  	hyphens: none;
}

I could also take a look once the site is live if this doesn’t help.

Tricia Jun 3, 2016 · 9:34 pm #3656

Brilliant! That did it! Thank you!

Andrew Misplon Puro Jun 4, 2016 · 12:06 pm #3659

Super 🙂 Really glad to hear that did the trick.

8 posts