Skip Navigation

[Resolved] Using Divi theme, line breaks not showing in multi-line or WYSIWYG field

This support ticket is created 2 years, 11 months ago. 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.

This topic contains 2 replies, has 2 voices.

Last updated by WilliamM1564 2 years, 11 months ago.

Author
Posts
#2298565

Tell us what you are trying to do?
I have set up a template for showing an Advisor custom post type in the Divi Theme Builder.

I defined extended text fields as multi-line, but when I displayed them in the Advisor template, all the paragraphs ran together.

I thought maybe I had used the wrong field type. So I tried defining new WYSIWYG fields and copying the text from the multi-line field to the new WYSIWYG field, still no line breaks displayed on the front-end. The text looks fine on the back end.

Is there something I am doing wrong?

Is there any documentation that you are following?
No.

Is there a similar example that we can see?
Here is the page hidden link

Fields in question are Background and Approach to Topics.

What is the link to your site?
hidden link

#2298995

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

How are you adding the field to the template?

I suspect you are using Divi's dynamic source for one its modules, would that be right?

In which case it is likely taking the raw unformatted value of the field.

If you insert the field using a shortcode in a text module (something which accepts and parses shortcodes) then it should work.

The format would be like this:

[types field='my-wysiwyg-field-slug' suppress_filters='true'][/types]

(I'm suggesting adding the option suppress_filters attribute to prevent any unexpected side-effects from 3rd parties.)

#2299245

My issue is resolved now. Thank you!