That would require adding an additional plugin, or worse, PHP code. I see this as a lack of compatibility with Gutenberg, which is core WordPress. This is an issue Bricks Builder itself should have a solution for, not something we should have to hack together ourselves in order to make it work.
Consider the topic of this video:
Should we be required to know a specific WordPress core function (has_blocks
) in order to get templates to work for Bricks and Gutenberg generated content? In addition, as @digismith mentioned in the other thread, a client might add Gutenberg content to a Bricks Builder page, and even using has_blocks
won’t prevent Bricks from spitting the Gutenberg content out at the end of the page, as if it were a whole new page appended to the Bricks page. There’s nothing anyone can do to prevent their clients from doing this as it stands right now, which is unfortunate in my opinion.
I believe the simplest solution would be for Bricks to have a “Rendered By” drop-down in the conditions, so that the template can apply to a) Bricks content only, b) Gutenberg content only, or c) both.