Site logo

Archived topic

Mini Cart Icon in two locations

7 replies · Started by Jonathan on April 27, 2020

Viewing posts 1–8 of 8

Currently I have this code running well on a site. I want to also add the mini cart icon on the mobile menu. Is it possible to have the cart icon show in two places?

add_filter( 'generate_woocommerce_menu_item_location', 'tu_move_menu_cart_item' );
function tu_move_menu_cart_item() {
    return 'secondary';
}

Hi there,

you can enable the Mobile Header in Customizer > Layout > Header.

Thanks. I like my header as is but was hoping to put the icon within the slide out menu.

So the icon would display inside the off-canvas panel when it's been opened? Any examples?

I was thinking of having the cart icon either before the off canvas menu like:

[Cart Icon]

[menu]

or

[menu]

[cart icon]

And what would happen when you click the cart icon? If it's just an icon taking you to the cart, it would be super easy to do with your own SVG/image.

Your right. I was overcomplicating this...

We all do it! Glad I could help :)

This archived topic is closed to new replies.