- Issue created by @G4MBINI
- Merge request !134Issue #3509373 by g4mbini: [5.0.x-alpha2] Add condition for title display in Hero component → (Merged) created by G4MBINI
If title slot is empty it prints anyway the heading html element.
We don't want that ...
In hero.twig
, add condition
{% if title %}
<h{{ heading_level }} class="text-5xl font-bold">{{ title }}</h{{ heading_level }}>
{% endif %}
Active
5.0
Code