From 51bafda3f5fe562e7c3aae9afbf56dc68ead57da Mon Sep 17 00:00:00 2001 From: alexanderroese Date: Sat, 22 Jun 2024 10:54:57 +0200 Subject: [PATCH] dynamic header logo --- config/settings_schema.json | 6 +++--- sections/header.liquid | 8 -------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/config/settings_schema.json b/config/settings_schema.json index dc3f06d..16741f7 100644 --- a/config/settings_schema.json +++ b/config/settings_schema.json @@ -38,12 +38,12 @@ "settings": [ { "type": "image_picker", - "id": "shx_logo2", + "id": "shx_logo_figuren", "label": "t:settings_schema.logo.settings.logo_image.label" }, { "type": "range", - "id": "shx_logo2_width", + "id": "shx_logo_figuren_width", "min": 50, "max": 300, "step": 10, @@ -53,7 +53,7 @@ }, { "type": "image_picker", - "id": "shx_favicon2", + "id": "shx_favicon_figuren", "label": "t:settings_schema.logo.settings.favicon.label", "info": "t:settings_schema.logo.settings.favicon.info" } diff --git a/sections/header.liquid b/sections/header.liquid index faa306a..13012ae 100644 --- a/sections/header.liquid +++ b/sections/header.liquid @@ -191,14 +191,6 @@ endif %} - {% assign logo_image = settings.logo %} - - {% if shx_current_page contains "texte" %} - {% assign logo_image = settings.logo %} - {% else %} - {% assign logo_image = settings.shx_logo2 %} - {% endif %} - {{ shx_header_logo | image_url: width: 600 | image_tag: class: 'header__heading-logo motion-reduce', widths: widths,