Eliminating hyphens at end of lines

  • Unknown's avatar

    I would like to get rid of the hyphens that have been created randomly in mid-word throughout my Twenty Twelve theme pages and posts. It looks particularly bad in the headings. Any ideas?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there, I’m not seeing any hyphenation in titles in your post or page titles, but the following should turn off hyphenation virtually everywhere. Go to Appearance > Customize > CSS, delete all the informational text in that window, and paste in the following custom CSS.

    .widget-area .widget, .site-content article {
        -moz-hyphens: none;
        -ms-hyphens: none;
        -webkit-hyphens: none;
        hyphens: none;
    }

    If you look around and find any places where you still have hyphenation, can you provide a link to that location and we can catch those too.

  • Unknown's avatar

    Hi. Many thanks for the fix. I had shortened my titles to avoid the problem in the meantime, but will now experiment again. All other hyphens gone, as far as I can see, but will come back to you if I stumble across any in due course. Very helpful advice!

  • Unknown's avatar

    You are welcome, and do let us know if you have additional questions or problems.

  • The topic ‘Eliminating hyphens at end of lines’ is closed to new replies.