Want to hide cart & login icon on homepage only

Solved
Highlighted
Tourist
11 1 1

Hi guys,

 

I'm using the Debut theme and would like to hide the header login and cart icon on my website's homepage only. How would I go about this?

0 Likes
Highlighted

Hello,

@GlobalSoldier 

For hiding cart and login from home page, we need to add condition in a file.

If you interested you can hire us on: https://experts.shopify.com/ultimate-apps/troubleshooting-and-problem-resolution

 

Thanks

Apps On Demand

Shopify Expert: https://experts.shopify.com/ultimate-apps
0 Likes
Highlighted

Success.

Shopify Partner
810 166 187

Hello,

Add this code in theme.liquid, you can find this file under Layout
 

  {% if template == 'index' %}
  <style>
    .site-header__account, .site-header__cart{
      display: none;
    }
  </style>
  {% endif %}

Add this code before closing </body> tag or before closing </head> tag

Thanks

Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate small Click here (Its my paypal)
1 Like
Highlighted

Success.

Shopify Partner
571 135 161

Hey,

 

Go to Assets\theme.scss.liquid

Put following code at the end of the file:

.template-index .site-header__account, .template-index .site-header__cart {
    display: none;
}

Hope this help you.

 

Thanks!

If helpful then please Like and Accept Solution.
Feel free to Contact me on dmw.webartisan@gmail.com
Follow us on Instagram @dmw.webartisan
2 Likes
Highlighted
Tourist
11 1 1

Thank you so much, this worked! :)

1 Like