How to remove syllabication in WordPress?

how to remove syllabicationLast week I published a new post and suddenly I noticed that instead of starting a new line with the new word, it was divided in two by WordPress (syllabication). I did not like it, so I wondered how I could add a typical word wrap, removing the hyphenation from WordPress. Here comes the solution!

If you have the same problem that I fought with you simply need to add the following code to your style.css file in WordPress:

.site-content article {
word-wrap: break-word;
-webkit-hyphens: none;
-moz-hyphens: none;
hyphens: none;
}

I do recommend that you create a WordPress child theme so that the code will not disappear whenever you update your WordPress theme. Hope the little piece of code will do the job for you as well!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>