[Resolved] Mini Cart Icon in two locations

Home Forums Support [Resolved] Mini Cart Icon in two locations

Home Forums Support Mini Cart Icon in two locations

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1257498
    Jonathan

    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';
    }
    #1257641
    David
    Staff
    Customer Support

    Hi there,

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

    #1257676
    Jonathan

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

    #1258695
    Tom
    Lead Developer
    Lead Developer

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

    #1260934
    Jonathan

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

    [Cart Icon]

    [menu]

    or

    [menu]

    [cart icon]

    #1261564
    Tom
    Lead Developer
    Lead Developer

    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.

    #1263067
    Jonathan

    Your right. I was overcomplicating this…

    #1263492
    Tom
    Lead Developer
    Lead Developer

    We all do it! Glad I could help 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.