WordPress.org

Ready to get started?Download WordPress

Forums

Enough
[resolved] Word wrapping problems on page and posts (3 posts)

  1. calin_rett
    Member
    Posted 1 year ago #

    Hi,
    I uploaded and installed Enough theme and I have some strange word wrapping breaks at the end of lines.
    You can see an example here
    http://www.yogasizen.ro/Despre/
    Tryied to add post and I have the same problem. I changed the theme to default, Twenty Twelve and there the difference is that the words have the sign - for break, but in both themes the alignement is justify and I cnnot change it, like the style chosen in editor page/post has no effect on the real site page.
    I have to mention that I'm new to HTML and CSS.
    All help is welcomed!

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    some strange word wrapping breaks at the end of lines.

    caused by this style in /css/box-modules.css

    .entry-content,.entry-title{
    	/*margin:10px 14px 10px 24px;*/
    	max-width:100%;
    	word-break:break-all;
    	word-wrap:break-word;
    }

    overwrite this in style.css, with:

    .entry-content,.entry-title{
    	word-break:normal;
    	word-wrap:normal;
    }

    http://www.w3schools.com/cssref/css3_pr_word-wrap.asp
    http://www.w3schools.com/cssref/css3_pr_word-break.asp

    in Twenty Twelve is that in style.css:

    .site-content article {
    	border-bottom: 4px double #ededed;
    	margin-bottom: 72px;
    	margin-bottom: 5.142857143rem;
    	padding-bottom: 24px;
    	padding-bottom: 1.714285714rem;
    	word-wrap: break-word;
    	-webkit-hyphens: auto;
    	-moz-hyphens: auto;
    	hyphens: auto;
    }

    once you remove/overwrite these styles, the 'justify' should also stop.

  3. calin_rett
    Member
    Posted 1 year ago #

    Hi,

    Thank you very much alchymyth, that solved my problem. Hope that now will be ok.
    Had to install an editor plugin for wordpress, in the theme's editor I wasn't able to see the problem you mentioned.
    Once again, thank you very much!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic