Hi,
I need help removing the Cart from my Theme. My website is linked here: https://www.gesell-yale.org/
Any help would be greatly appreciated!
A user seeks assistance removing the shopping cart icon from their Shopify theme at gesell-yale.org.
Current Status:
Technical Context:
This likely requires custom CSS code or theme file editing to hide or remove the cart element from the site’s header or navigation area.
Hi,
I need help removing the Cart from my Theme. My website is linked here: https://www.gesell-yale.org/
Any help would be greatly appreciated!
Hi @user2539
.nav--mobile .header-cart {
display: none;
}
Best regards,
Devcoder ![]()
Add below CSS in Online store >> Themes >> Customize >> Click on Settings icon to the left >> Scroll down to the bottom and paste it to the custom CSS tab.
or
assets/base.css
.header-cart__wrapper {
display: none;
}
Hi,
Hope this will help
All codes example
Hide cart icon using CSS:
/* assets/base.css */
.header__icon--cart,
.icon-cart,
.cart-count-bubble { display: none !important; }
Remove product buying using CSS:
/* assets/base.css */
form[action*="/cart/add"],
button[name="add"],
.shopify-payment-button { display: none !important; }
Block /cart (Liquid):
{%- comment -%} templates/cart.liquid {%- endcomment -%}
{% layout none %}
<script>window.location = '/';</script>
Replace Add to Cart with “Contact us” (Liquid):
{%- comment -%} In sections/main-product.liquid, remove the form and add: {%- endcomment -%}
<a href="/pages/contact?subject={{ product.title | url_encode }}" class="button">
Contact us to order
</a>
Hii @user2539 I see you are using PIPELINE theme from shopify.
You can add code by following these steps to hide cart drawer from desktop and mobile both
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
<style>
.cart-text-link,.nav--mobile .header-cart{
display:none !important;
}
</style>
Go to your store admin > Sales channels > Online Store > Themes > Customize > Theme settings > in Custom CSS, add this code
@media (max-width: 749px) {
.header-cart__wrapper { display: none !important; }
}
Best regards,
Dan from Ryviu: Product Reviews App