Different Logos on Homepage and Collection DEBUT

Hi,

how do i have to change the code to get one logo for the header at homepage and a different one for the header at collection sites?

Im using the debut design. The code underneath is taken from header.liquid.

Please help!

{% comment %}
          Use the uploaded logo from theme settings if enabled.
          Site name gets precedence with H1 tag on homepage, div on other pages.
        {% endcomment %}
        {% if request.page_type == 'index' %}
          # 
        {% else %}
          

        {% endif %}
          {% if section.settings.logo %}
            {%- assign img_url = section.settings.logo | img_url: '1x1' | replace: '_1x1.', '_{width}x.' -%}
            
              {% capture logo_alt %}{{ section.settings.logo.alt | default: shop.name }}{% endcapture %}
              
              
            
          {% else %}
            {{ shop.name }}
          {% endif %}
        {% if request.page_type == 'index' %}
          

        {% else %}
          
        {% endif %}

Hello @Mototech271 ,

Check the login in the code

{% comment %}
          Use the uploaded logo from theme settings if enabled.
          Site name gets precedence with H1 tag on homepage, div on other pages.
        {% endcomment %}
        {% if request.page_type == 'index' %}
          # 
        {% else %}
          

        {% endif %}
          {% if section.settings.logo and template == 'index'%}
            {%- assign img_url = section.settings.logo | img_url: '1x1' | replace: '_1x1.', '_{width}x.' -%}
            
              {% capture logo_alt %}{{ section.settings.logo.alt | default: shop.name }}{% endcapture %}
              
              
            
          {% else %}
            {{ shop.name }}
          {% endif %}
		  {% if template != 'index'%}
		     // Your INNER PAGES LOGO CODE WILL GO HERE
			 // Once you add the logo code  use else for next line
            {{ shop.name }}
          {% endif %}
        {% if request.page_type == 'index' %}
          

        {% else %}
          
        {% endif %}

You can add static code in comment ( Your INNER PAGES LOGO CODE WILL GO HERE ) or you can create another option to upload logo for inner pages parallel to the existing logo settings.
And once you create settings then in place of static code call that logo dynamically in same way as theme existing code for homepage.

Thanks

That worked!

Thank you so much!

Hi please I tried but I think i don understand how to make it work.