- 🇮🇹Italy drp_distruptor Neaples
Applying the patch of this link 🐛 Empty layout sections get rendered Needs work for Bootstrap Layout Builder seems not to work.
Again, all the patches attached to this issue are not applied on my Drupal 9.5.10 instance; so I found a workaround for blb-container-wrapper.html.twig template:
{% if children|render|raw|striptags|spaceless is not empty %} <div {{ attributes }}>{{ children }}</div> {% endif %}
- 🇦🇺Australia neubreed
And if you have a carousel or images in your section, omit stripping img tags (or any other tags) with:
{% if children|render|raw|striptags('<img>')|spaceless is not empty %} <section {{ attributes }}>{{ children }}</section> {% endif %}
Otherwise the section will be considered empty