How ? - template based on "render with Bricks" or "render with wp/gb"?

It’s diffucult to say. The code seems correct, I have it the same way and it works. Do you have template condition set to Post type Page / Posts?
If you would need more help, you can send me log in data and I can try to quickly debug it.

This worked for me: {echo:has_blocks({post_id})}

Hello, I would like to clarify how this can still be implemented in 2026, as a reference since something might have changed over time, given that none of the methods listed above worked.

  1. First allow has_blocks to be used with {echo:__} as dynamic data. That’s the only PHP code needed; add it to your child theme.

    add_filter('bricks/code/echo_function_names', function () {
      return [
        'has_blocks',
      ];
    });
    
  2. Set up your shared template and conditions for the template and the elements you want to show and hide.