diff --git a/templates/blocks/block.html.twig b/templates/blocks/block.html.twig index eb8af384f503e23d4596157198ce5475a2c6feeb..fd4fb29600e0a382cf1465081aceaef9b41fc1ec 100644 --- a/templates/blocks/block.html.twig +++ b/templates/blocks/block.html.twig @@ -44,7 +44,11 @@ {% endif %} {{ title_prefix }} {% if label %} - <h2{{ title_attributes }}>{{ label }}</h2> + {% if heading_level %} + <{{ heading_level }}{{ title_attributes }}>{{ label }}</{{ heading_level }}> + {% else %} + <h2{{ title_attributes }}>{{ label }}</h2> + {% endif %} {% endif %} {{ title_suffix }} {% block content %}