Words break apart across lines in Profile and Side bar of Listing Detail Page

This topic contains 4 replies, has 2 voices, and was last updated by  kbrotman 10 years, 5 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #3899

    kbrotman
    Free User
    Post count: 11

    If I want to display something like:

    “visit this listing at 123 Maple street”

    and that breaks across two lines I might get:

    “visit this li”
    “sting at 123 Maple street”

    in several places such as the profile display on a listing detail page,
    or the side bar such as at the Address or Open fields.

    The words need to stay together. Is there a fix?

    Thanks!

    #3900

    Guust
    Moderator
    Post count: 29970

    Add this CSS:

    
    
    p {
    -ms-word-break: normal;
    -ms-word-wrap: normal;
    word-break: normal;
    word-break: normal;
    }

    @Vikas and others
    This is a minor irritant I think, it is part of the GDF stylesheet on line 393:

    
    
    p {
    	-ms-word-break: break-all;
    	-ms-word-wrap: break-all;
    	word-break: break-word;
    	word-break: break-word;
    #3905

    kbrotman
    Free User
    Post count: 11

    That did fix it. It’s so much cleaner looking now! Actually I replaced the text in the stylesheet; which I’m sure is what you meant. Thank you!

    #3951

    Guust
    Moderator
    Post count: 29970

    The problem with replacing in the stylesheet is that it will be overwritten with the next upgrade.
    You should enter it into your child style.css file. That is never overwritten:
    http://codex.wordpress.org/Child_Themes

    #3958

    kbrotman
    Free User
    Post count: 11

    That makes sense. I added it to the child style.css file. It sure does look better without words breaking across lines. Thanks for pointing out the proper place to make the change.

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount