Warenkorb entfernen

Warenkorb entfernen

Online1234
Visitor
1 0 0

Ich benutze das Theme „Refresh“ und möchte damit gerne eine Marketing-Seite erstellen. 
jedoch schaffe ich es einfach nicht den Warenkorb bzw. Das Warenkorb-Symbol im Header zu entfernen. Diese benötige ich ja aber nicht, da meine Besucher nicht kaufen können.

Reply 1 (1)

mane
Shopify Partner
3 0 1

Option 1: Hide with CSS (Easy Method)

  1. Go to Online Store > Themes > Edit Code.

  2. Open the file in the Assets folder called base.css (or theme.css).

  3. Scroll to the bottom and add this code: 
    CSS
    .header__icon--cart {
    display: none !important;
    }

    This hides the cart icon without deleting anything, so it’s easy to undo later.

     

     

Option 2: Remove Cart Code from Theme (Cleaner Method)

  1. Go to Online Store > Themes > Edit Code.

  2. Open this file: sections/header.liquid.

  3. Press Ctrl + F (or Cmd + F on Mac) and search for:
    header__icon--cart or just cart.

  4. Look for code like this:

<a href="{{ routes.cart_url }}" class="header__icon header__icon--cart">
<span class="visually-hidden">{{ 'sections.header.cart' | t }}</span>
<svg>...</svg>
</a>

5. Delete it or comment it out like this:
{%- comment -%}
<a href="{{ routes.cart_url }}" class="header__icon header__icon--cart">
<span class="visually-hidden">{{ 'sections.header.cart' | t }}</span>
<svg>...</svg>
</a>
{%- endcomment -%}

Warm Regards,
Ankit Mane
Support Specialist | 5+ Years of Experience with Shopify

https://thaliatechnologies.com