Remove Cart Icon Homepage

103 2 26



I want to remove the "cart" icon from the homepage only.


It should be visible on the rest of the pages.


My theme is Stiletto and my website is


I tried many codes but nothing works!

Replies 2 (2)

Shopify Partner
1149 324 278

Hi @martujv 

This is Henry from PageFly - Landing Page Builder App


You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.liquid

Step 3: paste bellow code in tag </body> -> save.



{% if template == 'index' %}
      {% if page.url == '/pages/contact-us' %}
        Header, footer {
            Display: none !important;
      {% endif %}

{% endif %}

Hope that my solution works for you.

Best regards,

Henry | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!

PageFly - #1 Page Builder for Shopify merchants.

All features are available from Free plan. Live Chat Support is available 24/7.

103 2 26

Hello! Tried the code but nothing changed