dynamic header
parent
5dc07bde31
commit
074d0cc839
|
@ -59,7 +59,7 @@
|
|||
endcapture
|
||||
%}
|
||||
|
||||
console.log("3", "{{ settings.color_schemes["scheme-shx-texte-navbar"]["settings"]["background"] }}", {{ shx_current_page }})
|
||||
console.log("1", "{{ settings.color_schemes["scheme-shx-texte-navbar"]["settings"]["background"] }}", {{ shx_current_page }})
|
||||
|
||||
</script>
|
||||
|
||||
|
|
|
@ -177,9 +177,21 @@
|
|||
{% capture sizes %}(max-width: {{ settings.logo_width | times: 2 }}px) 50vw, {{ settings.logo_width }}px{% endcapture %}
|
||||
{% capture widths %}{{ settings.logo_width }}, {{ settings.logo_width | times: 1.5 | round }}, {{ settings.logo_width | times: 2 }}{% endcapture %}
|
||||
|
||||
<h1>here</h1>
|
||||
|
||||
{{ settings.logo | image_url: width: 600 | image_tag:
|
||||
{% liquid
|
||||
capture shx_current_page
|
||||
render "shx-get-current-page"
|
||||
endcapture
|
||||
|
||||
assign shx_header_logo = settings.logo
|
||||
|
||||
if shx_current_page contains "texte"
|
||||
assign shx_header_logo = "shopify:\/\/shop_images\/ShinnexTexte.webp"
|
||||
elsif shx_current_page contains "figuren"
|
||||
assign shx_header_logo = "shopify:\/\/shop_images\/ShinnexFiguren.webp"
|
||||
endif
|
||||
%}
|
||||
|
||||
{{ shx_header_logo | image_url: width: 600 | image_tag:
|
||||
class: 'header__heading-logo motion-reduce',
|
||||
widths: widths,
|
||||
height: logo_height,
|
||||
|
@ -220,22 +232,7 @@
|
|||
{% capture sizes %}(min-width: 750px) {{ settings.logo_width }}px, 50vw{% endcapture %}
|
||||
{% capture widths %}{{ settings.logo_width }}, {{ settings.logo_width | times: 1.5 | round }}, {{ settings.logo_width | times: 2 }}{% endcapture %}
|
||||
|
||||
{% liquid
|
||||
capture shx_current_page
|
||||
render "shx-get-current-page"
|
||||
endcapture
|
||||
|
||||
assign shx_header_logo = settings.logo
|
||||
|
||||
if shx_current_page contains "texte"
|
||||
assign shx_header_logo = "shopify:\/\/shop_images\/ShinnexTexte.webp"
|
||||
elsif shx_current_page contains "figuren"
|
||||
assign shx_header_logo = "shopify:\/\/shop_images\/ShinnexFiguren.webp"
|
||||
endif
|
||||
%}
|
||||
|
||||
{% comment %}
|
||||
{{ shx_header_logo | image_url: width: 600 | image_tag:
|
||||
{{ settings.logo | image_url: width: 600 | image_tag:
|
||||
class: 'header__heading-logo',
|
||||
widths: widths,
|
||||
height: logo_height,
|
||||
|
@ -244,8 +241,6 @@
|
|||
sizes: sizes,
|
||||
preload: true
|
||||
}}
|
||||
|
||||
{% endcomment %}
|
||||
</div>
|
||||
{%- else -%}
|
||||
<span class="h2">{{ shop.name }}</span>
|
||||
|
|
Loading…
Reference in New Issue