dynamic header

main
alexanderroese 2024-06-21 15:43:04 +02:00
parent 72d95192d4
commit 904317c883
3 changed files with 4 additions and 6 deletions

View File

@ -128,8 +128,8 @@
"show_cart_note": true,
"cart_drawer_collection": "",
"cart_color_scheme": "scheme-2",
"shx_logo_figuren": "files/ShinnexFiguren.webp",
"shx_logo_texte": "files/ShinnexTexte.webp",
"shx_logo_figuren": "shopify://shop_images/ShinnexFiguren.webp",
"shx_logo_texte": "shopify://shop_images/ShinnexTexte.webp",
"checkout_logo_image": "shopify://shop_images/Frame_68.svg",
"checkout_logo_position": "left",
"checkout_accent_color": "#af9363",

View File

@ -59,7 +59,7 @@
endcapture
%}
console.log("2", "{{ settings.color_schemes["scheme-shx-texte-navbar"]["settings"]["background"] }}", {{ shx_current_page }})
console.log("3", "{{ settings.color_schemes["scheme-shx-texte-navbar"]["settings"]["background"] }}", {{ shx_current_page }})
</script>

View File

@ -177,7 +177,6 @@
{% 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 %}
{% comment %}
{% liquid
capture shx_current_page
render "shx-get-current-page"
@ -191,9 +190,8 @@
assign shx_header_logo = settings.shx_logo_figuren | image_url
endif
%}
{% endcomment %}
{{ settings.logo | image_url: width: 600 | image_tag:
{{ shx_header_logo | image_url: width: 600 | image_tag:
class: 'header__heading-logo motion-reduce',
widths: widths,
height: logo_height,