Site logo

Archived topic

Woocommerce Cart Icon in Top Bar Widget Area

3 replies · Started by stheobald on June 24, 2020

Viewing posts 1–4 of 4

Hi all,

I already tried to follow this instruction: https://generatepress.com/forums/topic/cart-icon-size-and-position/
But it does not work for me.

I have this setup:
Menu "Top-Bar" which is insert in the top bar widget area.

Main-Menu, which is set to the primary-menu theme location.

I want to add the Cart Icon with full functionality to the top bar menu which is display in the top bar widget area.

Is their a way to do that?

Thanks and best wishes from germany :)

Hi there,

Can you try:

- Creating a new menu without any menu items in it and assign to the secondary navigation:
https://docs.generatepress.com/article/using-the-wordpress-menu-builder/
https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#setting-a-theme-location

- Set the location to above header:
https://docs.generatepress.com/article/secondary-navigation-location/

- Then activate merge with top bar:
https://docs.generatepress.com/article/top-bar-widget-area/#secondary-navigation

- Then add this PHP snippet:
https://docs.generatepress.com/article/generate_woocommerce_menu_item_location/

Adding PHP: https://docs.generatepress.com/article/adding-php/

Great!! thanks for your support, worked perfectly!

No problem :)

This archived topic is closed to new replies.