Site logo

Archived topic

Add WooCommerce cart item indicator to custom icon

3 replies · Started by Tim on August 25, 2021

Viewing posts 1–4 of 4

I am using a custom icon added to the primary navigation as my shopping cart icon because I needed a custom CSS class on it to open a slideout cart + remove the href.
See this thread for details:
https://generatepress.com/forums/topic/remove-the-url-from-the-menu-cart-icon

I am wondering if there is any way to add WooCommerce's number-of-items-in-the-cart indicator to my icon?

Every single Google Search result I've visited shows how to add this to the stock WooCommerce Cart icon. But I need to add it to my custom icon :/

This archived topic is closed to new replies.