Skip Navigation

[Resolved] html tag missing in wyswyg fields

This thread is resolved. Here is a description of the problem and solution.

Problem: When I try to display a WYSIWYG field in a Toolset Single Field block, sometimes paragraph and line break tags are stripped from the display.

Solution: Use a Fields and Text block instead of a Single Field block to work around this issue.

This support ticket is created 4 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.

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

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 6 replies, has 2 voices.

Last updated by corinner-2 4 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#1660845

Tell us what you are trying to do?

I tried with the classical editor or the block editor, in different wyswyg fields in the two templates, I tried deactive the excerpt in the the templates...
I don't understand why the simple html tag <p> and <br> disapear.
I use free astra theme.
I also tried to install the classical editor plugin, but it didn't helped.

What is the link to your site?
hidden link under construction

Thanks for your help.

#1662383

Hello, can you show me some screenshots of your content in the WYSIWYG editor and show me how you have inserted the content in your template? I will review the screenshots and give you some advice.

#1664591
block-editor-template-1.jpg
wysiwyg-field.jpg
page-with-field.jpg
block-editor-template.jpg

Thanks for your help, below are 3 screenshots

#1667161

Please take a look at block-editor-template-1.jpg
In the "Third party filters" option, can you try selecting "Apply third party filters to the output" and let me know if the results are any different on the front-end of the site?

#1670897

Unfortunatly for some wysiwyg fields, with ou without the filters, nothing changes, no <p>, no <br>...
How to solve it ? How to configure the editor ?

#1672257
Screen Shot 2020-06-22 at 10.50.42 AM.png

In this case, I think it would be best to use the "Fields and Text" block instead of the "Single Field" block. There are some known instances where the Single Field block strips paragraph tags from WYSIWYG fields, and the Fields and Text block will display the content with paragraphs successfully. I suggest you try using the Fields and Text block instead, then click the "Add Field or View" button above the editor area to display your WYSIWYG field content, formatted appropriately. See the screenshot here for an example.

#1677995

My issue is resolved now. Thank you!