Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1467664

    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

    #1467674

    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.

    #1467704

    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

    #1467748

    Hi Ismael,
    it does work well. Thank you very much!

    #1467778

    Hi,

    You’re welcome! Glad to know the suggestions worked. Please fee free to start another thread if you have more questions about the theme.

    Have a nice day.

    Best regards,
    Ismael

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Adding hyphenation to a text’ is closed to new replies.