• I am using Theme 2014. I like the look, but I am having a problem I’ve never encountered before. Several words in my posts are being hyphenated at the end of the line rather than having the whole word carried to the next line. How do I fix this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Do you have a link to your website?

    Generally, you can use these lines of code in the style.css file to turn off hyphenation:

    p {
    	-moz-hyphens: none;
    	-ms-hyphens: none;
    	-webkit-hyphens: none;
    	hyphens: none;
    	word-wrap: normal;
    }
    Thread Starter lcnatura

    (@lcnatura)

    Thread Starter lcnatura

    (@lcnatura)

    Where – in the style.css file – do I place that code?????

    Thread Starter lcnatura

    (@lcnatura)

    OK, Tessa, I found a spot in the style.css file that already had all the designations you list EXCEPT the “word-wrap: normal:” so added that and updated. Nothing happened. The hyphens are still there.

    Hi again,

    Thanks for the link to your site. There is another place in the code that has hyphens turned on – look for the .entry-content selector in style.css. You should see this code:

    .entry-content,
    .entry-summary,
    .page-content {
    	-webkit-hyphens: auto;
    	-moz-hyphens:    auto;
    	-ms-hyphens:     auto;
    	hyphens:         auto;
    	word-wrap: break-word;
    }

    It looks like there are other selectors that have hyphens turned on as well: .nav-links, .comment-content, and .widget. You can do a find for “hyphens” on your style.css to find them quickly.

    Thread Starter lcnatura

    (@lcnatura)

    Yeah!! So, my understanding from your comments above is that whenever I see “hyphens” in the code, I should change “auto” to “none” and that where it says “word-wrap” I should change “break-word” to “normal”. I scrolled all the way through the coding and made those changes. The hyphenated words are all gone! Thank you.
    I am soooooo out of my element here, and I hope that making all those changes didn’t mess up something else with the site.
    Apparently the 2014 theme was designed this way. I certainly didn’t change any of the code prior to your instructions. I am surprised that that was a design decision. Do most folks prefer to have the hyphens?

    So glad I could help!

    I guess the hyphenation is a personal preference, though I’ve never encountered someone who prefers it!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘hyphenated words at end of the line’ is closed to new replies.