Site logo

Archived topic

Long Text without Spaces goes of sidebar container

12 replies · Started by Musa Ahmad on November 20, 2015

Viewing posts 1–13 of 13

Hello!
I'm using generatepress theme and got all of generatepress Add-ons.

I'm blogging in Cambodian language (Khmer). One complete sentence in Khmer we don't use spacing between words.

So the problem is:
The post title will appear in Recent Posts on sidebar goes out of container. Please click the following link to see exactly what I'm trying to describe : http://alihsanassociation.org/kh/

Any solution without expending the width of the sidebar?

Please help me.

I believe your only solution would be this CSS:

.sidebar .widget {
    word-wrap: break-word;
}

It will break the word up so it doesn't run outside the container.

Let me know if you need more info :)

I added the given code in public_html/wp-content/themes/generatepress/style.css but still not working.

I already installed Simple CSS plugin and pasted the css code but not working either.
The problem is in the right sidebar, I found your code is written

.sidebar .widget {
    word-break: break-word;
}

not mention right or left sidebar, is that effects or not?

When I go to your site I'm not seeing the text leaving the sidebar - it looks good to me.

Maybe try clearing your browser cache?

.sidebar applies to the left and right sidebars :)

Yes, Its working.
Thank you very much.
Appreciated

You're very welcome :)

Hi,

why is the text going out?
http://propertygeek.sg/

i have added the css.
yet, the long test text is going out.

Just adding, it doesn't seem to be anything to do with sidebars,
http://propertygeek.sg/about/
Check this page as well.

How do we fix it?

The spaces between your words have   which stands for non breaking space. This means it's not allowing the word to break down to the next line.

See here: http://screencast.com/t/DwSRxCwa

Replace those spaces with regular spaces using your space bar and it should work :)

This archived topic is closed to new replies.