Skip Navigation

[Resuelto] Errant HTML paragraph tags in Layouts' Visual Editor cells

This support ticket is created hace 6 años, 6 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Etiquetado: 

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por Clifford hace 6 años, 6 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#905835

Video of the issue: enlace oculto

Issue/Bug can be considered from 2 angles:
1) HTML paragraph tag looks like it's added to Types shortcodes but they're not.
2) HTML paragraph tag gets added to non-Types shortcode content when in the HTML editor

Either all Visual Editor cells should get wrapped in HTML paragraph tags so they're consistent (especially since P tags can add extra vertical spacing and make things within the same row misaligned), or P tags should only be added to content created in the Visual tab of the Visual Editor.

#905971
paragraphs.JPG

Hello,

Please check this, when you edit a visual editor cell in the layout, try to enable the option "Disable automatic paragraphs" and test again, see screenshot paragraphs.JPG

#905975

Ah, missed that checkbox. Good to know, and it made the P tags around my custom HTML go away, but I think it's still fair to say that the Types shortcode being wrapped in P tag is misleading since the P tag does NOT output on the front-end.

#906003

In your video, when you switch to HTML editor, the Types shortcode is wrapped by <p>...</p> tags, so in front-end, the result should be wrapped by <p>...</p> tags, and I have tested it in my localhost, it works fine, there isn't similar problem as you mentioned above:
Types shortcode being wrapped in P tag is misleading since the P tag does NOT output on the front-end

In case it is other compatibility problem of your website, please try these:
deactivate other plugins and switch to wordpress default theme, and test again

#906286

Ok, thanks for testing.
I decided to just code the template in PHP because Layouts doesn't have Bootstrap 4.