- This topic has 5 replies, 3 voices, and was last updated 5 years, 5 months ago by
David.
-
AuthorPosts
-
October 19, 2020 at 12:54 pm #1496131
Kim
Hi There,
On the mobile version of my website there are a lot of word- or line breaks in the body text, but also in headers, that I don’t want.
I’d rather have no word breaks. But just the whole word on the line below. Sometimes I do not understand why a word is broken in two, sometime on really strange places (after one letter even!). Whereas there seems to be more than enough space to show the word sinds other lines of text on the next line are far longer.
How and where can I fix this? My site is written in Dutch.
Thanks so much!
October 19, 2020 at 2:02 pm #1496217Elvin
StaffCustomer SupportHi,
I’ve checked your site and found this code.
<style type="text/css" id="simple-css-output"> .entry-content {overflow-wrap: break-word;word-wrap: break-word;-webkit-hyphens: auto;-ms-hyphens: auto;-moz-hyphens: auto;hyphens: auto;} </style>I see that you’re using Simple CSS plugin. That is where these break-word CSS codes are added.
Try removing them and check if things get any better.
October 20, 2020 at 2:52 am #1496664Kim
Hi Elvin,
Thanks for your reply. I removed the code form the Simple CSS but it is still breaking some words, only now without any hyphens. The spacing looks a lot better though. But I’d prefer no breaking at al. What can I add or do?
This is the code i’ve found in Simple CSS:
.entry-content {
overflow-wrap: break-word;
word-wrap: break-word;
-webkit-hyphens: auto;
-ms-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}Thanks again.
Ps. I emptied my cache 😉
October 20, 2020 at 3:41 am #1496723David
StaffCustomer SupportHi there,
is there any reason you’re using the Preformatted block ? Its really designed for displaying code which will change the way text breaks.
Instead you can just use a standard text block, and in the Settings (sidebar) > Colors you cab set a background color. GP will automatically add the padding to the block.
October 20, 2020 at 10:07 am #1497398Kim
Hi David,
Thanks for getting in to it. I use the preformatted block because the discription tells me: ‘add text that keeps your spacing and tabs, and also allows styling.’ And I thought it looked nice…
But I did wat you suggested with a normal text blok (Somehow I didn’t think of that, sorry!) and I think thats the solution! Thanks so much for your help.
Greetings from The Netherlands!
October 20, 2020 at 2:19 pm #1497663David
StaffCustomer SupportGlad to be of help.
-
AuthorPosts
- You must be logged in to reply to this topic.