WordPress.org

Ready to get started?Download WordPress

Forums

Suits
Hyphenation in body of post (8 posts)

  1. joymbean
    Member
    Posted 9 months ago #

    Is it possible to disable hyphenation so words simply wrap to a new line if necessary?

  2. Josh Stauffer
    Member
    Posted 9 months ago #

    You'll want to edit the theme's style.css. Find the following code and change auto to none if you prefer.

    .site-content {
    	-webkit-hyphens: auto;
    	-moz-hyphens:    auto;
    	-ms-hyphens:     auto;
    	hyphens:         auto;
    	word-wrap: break-word;
    }
  3. WPyogi
    Volunteer Moderator
    Posted 9 months ago #

    You'll want to edit the theme's style.css

    Changes to theme files are lost when the theme is updated - it's much better to use a child theme or custom CSS option or plugin.

  4. Josh Stauffer
    Member
    Posted 9 months ago #

    Nice catch, WPyogi. I usually mention this but forgot this time. Thank you.

  5. joymbean
    Member
    Posted 9 months ago #

    Thank you so very much for the suggestions!

    Would I use the same changes to the code in a child theme?

    And could you recommend a plugin for this kind of change?

  6. Josh Stauffer
    Member
    Posted 9 months ago #

    You could use Jetpack.

    Activate the Custom CSS feature and apply the changes suggested above.

  7. joymbean
    Member
    Posted 9 months ago #

    Thank you! I appreciate you sharing your knowledge.

  8. Josh Stauffer
    Member
    Posted 8 months ago #

    No problem.

Reply

You must log in to post.

About this Theme

About this Topic

Tags