Site logo

Archived topic

Sections add p tags before and after LW columns

7 replies · Started by Nikola on April 18, 2019

Viewing posts 1–8 of 8

I have a problem with sections. When i move from visual editor to text editor it adds p tags before and after LW grid columns. Where is the problem?

Thanks in advance.

Regards,
Nikola

This is a combination of the columns shortcode (all columns shortcodes, regardless of plugin) and the Classic Editor in WordPress. The plugin tries to remove the empty paragraph tags if it can.

Try spacing out your content:

[shortcode]
(empty line)
Your content in here
(empty line)
[/shortcode]

In classic editor, i don't have that problem. I tried Sections inside of Gutenberg and i have this kind of problem when i move from visual editor to text editor.

<p>[shortcode]</p>
Your content in here
<p>[/shortcode]</p>

Ah yes, Gutenberg (WordPress 5.0) made it so the TinyMCE editor shows <p> elements. It never used to even though they were technically there.

If i am correct, i need to use classic editor with Sections for now, yes? :)

That's correct. We have a Section block coming to Gutengerg very soon, though :)

I am looking forward to that. :)

Us too! :)

This archived topic is closed to new replies.