diff --git a/agaric/templates/paragraph/paragraph--title.html.twig b/agaric/templates/paragraph/paragraph--title.html.twig index a943d01..f6fa82d 100644 --- a/agaric/templates/paragraph/paragraph--title.html.twig +++ b/agaric/templates/paragraph/paragraph--title.html.twig @@ -51,6 +51,10 @@ {% set classes = classes|merge(['hero-project']) %} {% endif %} +{% if paragraph.field_style_titlebar is not empty and paragraph.field_image is not empty %} + {% set attributes = attributes.setAttribute('data-headerbg', 'transparent').setAttribute('style', 'background-image: url('~file_url(paragraph.field_image.entity.uri.value)~')') %} +{% endif %} + {% block paragraph %} {% block content %}