How can I hide logo only on Homepage Can Someone help me?

hi,
How can I hide logo only on Homepage Can Someone help me in the Dawn theme?

Hello @Zworthkey ,

Edit your header.liquid under ‘sections’
Here search this code

{%- if request.page_type == 'index' -%}
      # 
    {%- endif -%}
        
          {%- if section.settings.logo != blank -%}
            {%- assign image_size = section.settings.logo_width | append: 'x' -%}
            
          {%- else -%}
            {{ shop.name }}
          {%- endif -%}
        
    {%- if request.page_type == 'index' -%}
      
    {%- endif -%}

once found wrap it with if request.page_type or template not index

like this

{%- if request.page_type != 'index' -%}
    {%- if request.page_type == 'index' -%}
      # 
    {%- endif -%}
        
          {%- if section.settings.logo != blank -%}
            {%- assign image_size = section.settings.logo_width | append: 'x' -%}
            
          {%- else -%}
            {{ shop.name }}
          {%- endif -%}
        
    {%- if request.page_type == 'index' -%}
      
    {%- endif -%}
{%- endif -%}

Thanks

2 Likes

@Guleria
And how to hide menu and icons
Thanks So much.

1 Like

Same logic just wrap that html

{%- if request.page_type != 'index' -%}
// Your menus and icons code goes here
{%- endif -%}
1 Like

Thanks very much, it works.

1 Like