Archived topic
WooCommerce cart at the end of secondary menu
7 replies · Started by George on May 21, 2018
I can see an option in the Customizer to remove the WooCommerce cart from the primary menu but what if I want to just move it at the end of the secondary menu instead? Also, is there a way to display amount next to the cart even if it's zero?
Hi there,
This should help with the first question:
https://generatepress.com/forums/topic/suggestion-woocommerce-cart-menu-icon-location/#post-463529
Checking with Tom on displaying 0 :)
Ok thanks Leo, the first one didn't work by the way, no cart is visible on the secondary menu.
How did you add that code? It should definitely work. Can you add your URL to the original post?
I am adding the code through the snippets plugin. It seems to be creating a space for it but the icon is invisible. Updated the URL in original post, it's a fresh GP install.
Can you try adding this CSS?:
.secondary-navigation a.cart-contents:before {
content: "\f07a";
display: inline-block;
font-family: "GP Premium";
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
Yeah that did it! Maybe in the next vesion could be an option to include the cart in other menus apart from the main one? Also Tom, do you know of a way to include price even if it's zero?
We'll likely stick with the filter for now, but I'll add that CSS into the plugin.
As for the zero, try this CSS:
.wc-menu-item .amount:empty:after {
content: " $0.00";
}