Home>Support>Page Builder: text widget displays random line breaks mid-word

Page Builder: text widget displays random line breaks mid-word

Since I upgraded SiteOrigin Widgets Bundle to 1.5.2, text inside a SiteOrigin Headline widget – in both the head and subhead regions – now line-breaks anywhere and often in the middle of a word. When you drag to resize the width of the browser window, instead of whole words moving over to the next line, individual characters move over instead.

So far this I’ve seen this occur on Mac desktop (safari, chrome, firefox) but seems not to happen on mobile (so far, iPhone6, android, iPad tested)

Does anyone have knowledge of or a fix for this issue?

I’m running the Café Pro theme on the Genesis framework on WordPress 4.3.1

URL: http://agoodplace.sdt-lab.com/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 10 months ago Richard Gregory

    Okay. I’ve applied a temporary fix until an update arrives. As follows:

    file: plugins/so-widgets-bundle/widgets/so-headline-widget/styles/sow-headlines.less

    Insert

     
    word-break: normal !important; 
    

    insert as follows in the headline_ and sub_headline_ tags

        @{headline_tag} {
            .font(@headline_font, @headline_font_weight);
            text-align: @headline_align;
            color: @headline_color;
            line-height: 1.3;
            word-break: normal !important;
    
        }
    
        @{sub_headline_tag} {
            .font(@sub_headline_font, @sub_headline_font_weight);
            text-align: @sub_headline_align;
            color: @sub_headline_color;
            line-height: 1.3;
            word-break: normal !important;
        }
    

    That works for now.

    I’d appreciate some input from anyone at SiteOrigin as to whether my fix is bad code, will break anything, or if I’ve done anything contractually dumb.

    Thanks
    Richard

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More