When making Contact Forms (using Contact Form 7) with multi-column layouts (using X shortcodes) such as the following:
They are not output correctly in Cornerstone, nor on the frontend:
But this issue does not occur when using the Contact Form 7 Gutenberg block or when using the Gutenberg Shortcode Block:
Looking into the HTML, I see that empty paragraphs are output when only when using Cornerstone:
So I looked at the code of the Gutenberg Blocks, and it looks like the output is passed through a function called wpautop
(I suppose it’s pronounced WP Auto P, see here), which strips empty paragraphs (<p></p>
) from the output. So the solution for X/Pro is to use this function as well, or just strip empty paragraphs manually.