Hello!
I would love to be able to add hyphenation to (Italian) texts on my website as there is a lot of spacing between words on mobile in justified text and I don’t like to use aligned text.
I have already searched through topics, found some threads about this but haven’t really understood what the best solution is. Some sounded pretty complicated. Some mention the plugin Hyphenator, which is not available anymore. I am pretty sure I had an hyphenation option on the Avia builder in a previous Enfold website I had, which had been created by a professional, and I do not know how he did that.
Any advice?
Thank you
Elena
hyphenator – has been my favorite Plugin on that; especially because it could be used in a targeted manner by means of a custom class.
Server performance is heavily impacted by such hyphenation plugins. WP Typography works with the current version of WordPress, even though it has not been updated for a long time.
Hi,
Thank you for the inquiry.
Try to add this css code:
body {
-webkit-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
}
[lang="it"] {
-webkit-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
}
And if you want to apply hyphenation to a specific text or paragraph, you can just add the lang attribute.
<p lang="it">L’animale e il suo custode sono anime in cammino su un percorso comune.</p>
Best regards,
Ismael
Hi Ismael,
it does work well. Thank you very much!