JustinWDev of Archived Theme Support
1/17/2016 - 12:47 AM

Hide the mini-cart added by Buy Button app

Hide the mini-cart added by Buy Button app

Problem

A lot of merchants add Buy Buttons to their store pages. Buy Buttons were never intended for such use, they are meant to be added to external non-Shopify website pages.

Since they are meant to be added to something else than store pages, Buy Buttons carry with them their own cart drawer and mini-cart link.

That mini-cart link is attached to the right edge of the screen, and looks like that:

Since Shopify themes already have their own cart link in the header, the merchants don't usually like that extra one, and want us to remove it.

Take note most merchants won't know where that's coming from...

How to remove the mini-cart link

  1. Open your theme stylesheet.
  2. Scroll down to the bottom using Ctrl-↓.
  3. Add that:
    [data-embed_type="cart"] {
      display: none !important;
    }