SOLVED: Wordpress post content element outputs an empty div when Gutenberg content is empty

Bricks Version: 1.4RC

In order to use the same template for both Guntenberg and Bricks pages, we can put two Wordpress post content elements (thx @timmse), one for Bricks content, one for Wordpress content.

The problem is, when Gutenberg content is empty, the Wordpress post content element still outputs a div, and if we style it with padding to match Bricks sections, an empty area appears on the page:

The WP div should not appear at all when content is empty, like Bricks content.

In the meantime, this CSS can be used to hide the empty WP content:

1 Like

Hi Yan,
Thanks for adding this as a forum report as well :raised_hands:

You’re of course right, the post content element should behave exactly as it does with bricks content when it’s empty.

Best regards,
timmse

1 Like

Hey @yankiara,
Bricks 1.6 beta contains a fix for this problem. However, we would be happy if you could briefly test whether the problem is fixed so that we can include it in Bricks 1.6 stable.

You can find the beta version in your account:
https://bricksbuilder.io/account/?v=1.6-beta

Best regards,
timmse

Hi @timmse,

I confirm it is fixed on 1.6beta :slight_smile:
Thanks!

1 Like