Skip Navigation

[Geschlossen] Code line breaks fix not working

This support ticket is created vor 8 Jahre, 4 Monate. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 -
- - - - - - -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 2 Antworten, has 2 Stimmen.

Last updated by Adriano vor 8 Jahre, 4 Monate.

Assigned support staff: Adriano.



You removed a code line break fix from your CSS:

However my opinion is you should not try to fix this anyway (people should not use a lot of code inside the code element), you changed the fix to:

.entry-content code {
	max-width: 100%;

This is not working, see picture.

Kind regards,



I will check that with our development team and will let you know.


I have checked on this and this is not an issue but a default handling inside Boostrap core CSS.
The client is correct that we need not need to a permanent on this on our theme as this varies per application.

On his specific case, the solution is to add this CSS to a child theme:

.entry-content code {
    white-space: pre-wrap;       /* CSS 3 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;  

This assumes that you are using latest version of Toolset Bootstrap that is version 1.5 (currently available in our downloads page).

Das Thema „[Geschlossen] Code line breaks fix not working“ ist für neue Antworten geschlossen.