I don’t see a reason why the header logo file hardcoded in header.liquid is not being recognized. Code is below. Please look at this line in the code. sourceLogoFile is the variable that holds the logo file that I manually assigned.
{%- elsif settings.logo != blank -%}
{% comment %}
Automation of logo updating follows the steps below.
1. A Cronjob on POMS/PMM server runs at the dawn.
2. An API call is made to Shopify to pass logo tag and logo event date info.
3. The passed data is stored in shop level metafields generated by the API.
4. Fields are A. shop.metafields.pmm.logo_tag}} 2. {{shop.metafields.pmm.logo_date_info}}
5. Get full logo file name from Shopify file section based on the logo_tag meta field content.
6. Use case to assign logo file name to a variable based on the logo_tag
{% endcomment %}
{% assign sourceLogoFile = 'PMM_512_rec_R_f235cc1b-7359-44c9-82bd-6d2ad198e1ce.png' %}
{%- if shop.metafields.pmm.logo_tag != "normal" -%}
{% case shop.metafields.pmm.logo_tag %}
{% when 'valentine' %}{%- assign sourceLogoFile = 'logoVALENTINE.png' -%}
{% when 'spatricks' %}{%- assign sourceLogoFile = 'logoSTPATRICKS.png' -%}
{% when 'easter' %}{%- assign sourceLogoFile = 'logoEASTER.png' -%}
{% endcase %}
{%- endif -%}
{%- if shop.metafields.pmm.logo_date_info -%}
{% assign eventDate = shop.metafields.pmm.logo_date_info %}
{%- endif -%}
{%- if settings.home_classic and template == 'index' and settings.logo_cl != blank -%}
{%- if settings.logosvg != blank -%}
{{settings.logosvg | replace: '
{%- endcapture -%}
{%- capture textblock -%}
{%- if settings.hdTxt-block contains "[social-icons]"-%}
{%- assign headerTxt = settings.hdTxt-block | split: "[social-icons]" -%}
{{headerTxt[0]}} {% render 'social-media' %} {{headerTxt[1]}}
{%- else -%}
{{ settings.hdTxt-block }}
{%- endif -%}
{%- endcapture -%}
{%- if settings.nav_below_logo -%}{{desktopnav}}{%- endif -%}
{%- if settings.snow_effect -%}{%- endif -%}
{{mobilenav}}
{%- endcapture -%}
{{siteHeader | strip_newlines | remove: " " | remove: " " }}
I’ve a dozen of image files for the header logo uploaded to Shopify.