Passer la navigation

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

This support ticket is created Il y a 4 years, 3 months. 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.

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par WilliamM1564 Il y a 4 years, 3 months.

Auteur
Publications
#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 lien caché

Fields in question are Background and Approach to Topics.

What is the link to your site?
lien caché

#2298995

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+01: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!