dynamic header

main
alexanderroese 2024-06-21 15:06:34 +02:00
parent effc4c9c93
commit 037b9ffbc7
1 changed files with 4 additions and 1 deletions

View File

@ -222,7 +222,7 @@
render "shx-get-current-page"
endcapture
assign shx_header_logo = "shopify:\/\/shop_images\/ShinnexTexte.webp"
assign shx_header_logo = settings.logo
if shx_current_page contains "texte"
assign shx_header_logo = "shopify:\/\/shop_images\/ShinnexTexte.webp"
@ -231,6 +231,7 @@
endif
%}
{% comment %}
{{ shx_header_logo | image_url: width: 600 | image_tag:
class: 'header__heading-logo',
widths: widths,
@ -240,6 +241,8 @@
sizes: sizes,
preload: true
}}
{% endcomment %}
</div>
{%- else -%}
<span class="h2">{{ shop.name }}</span>