diff --git a/layout/theme.liquid b/layout/theme.liquid index 2f9fff6..6f8e156 100644 --- a/layout/theme.liquid +++ b/layout/theme.liquid @@ -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 }}) diff --git a/sections/header.liquid b/sections/header.liquid index 8e53152..11f09a4 100644 --- a/sections/header.liquid +++ b/sections/header.liquid @@ -191,7 +191,15 @@ endif %} - {{ {% if shx_current_page contains "texte" %} settings.logo {% else %} settings.shx_logo2 {% endif %} | image_url: width: 600 | image_tag: + {% assign logo_image = settings.logo %} + + {% if shx_current_page contains "texte" %} + {% assign logo_image = settings.logo %} + {% else %} + {% assign logo_image = settings.shx_logo2 %} + {% endif %} + + {{ logo_image | image_url: width: 600 | image_tag: class: 'header__heading-logo motion-reduce', widths: widths, height: logo_height,