New Shopify Certification now available: Liquid Storefronts for Theme Developers

Delete Cart Button in Header District Theme

Solved
mvettori
Tourist
3 1 3

I use the District Theme in one of my Shopify Shops.

 

Because we don't sell any products directly, I must'nt have a "Add to cart" Button or a Cart in general.

I successfully deleted the "add to cart" button on the product pages already.

But now I have problems with deleting the cart button in the top right corner.

 

I already tried mutliple codes i found on the internet but none seemed to work.

 

A working solution would be amazing!!!

 

Thanks already

Accepted Solution (1)
mvettori
Tourist
3 1 3

This is an accepted solution.

I already found a solution through another source!

 

For anybody with the same problem, here's the solution:

 

Go into Customize > open the Top Bar section > expand the Custom CSS option and paste in the following:

a#CartButton {
display: none;
}

 

Hope this can help anybody!

View solution in original post

Replies 4 (4)
Made4uo-Ribe
Shopify Partner
4186 961 1167

Hi @mvettori 

Would you mind to share your Store URL website? with password if its protected. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


mvettori
Tourist
3 1 3

Sure Thing, heres the URL:

https://your-drink.at

 

and here's the Password:

YourDrinkRedesign2023

 

Thanks!

Made4uo-Ribe
Shopify Partner
4186 961 1167

Thank you, Sorry to ask again. Would you mind to point out the location of the cart youve like to remove? Its not visible on my end. 

Made4uoRibe_0-1695738571896.png

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


mvettori
Tourist
3 1 3

This is an accepted solution.

I already found a solution through another source!

 

For anybody with the same problem, here's the solution:

 

Go into Customize > open the Top Bar section > expand the Custom CSS option and paste in the following:

a#CartButton {
display: none;
}

 

Hope this can help anybody!