Mini Cart Toggle - pressden/emma GitHub Wiki

Only works with WooCommerce

The mini-cart-toggle class will find the first hyperlink inside of its element and turn it into a toggle for WooCommerce's Mini Cart. This is typically used for menu items. The text for the hyperlink will be hidden and become screen reader text, and will be replaced visually by a shopping cart icon. Clicking the icon will make a floating cart appear, containing all cart items, and controls that allow for item removal, or proceeding to checkout or the cart page.