Site logo

Archived topic

Navigation logo centering problem

5 replies · Started by mike on December 7, 2017

Viewing posts 1–6 of 6

Hello,

I have used you guide to center the nav logo using a menu item
https://docs.generatepress.com/article/centering-logo-navigation/

There is one problem which i can't handle

1. When the woocommerce cart is empty, and there is no number next to the cart icon - the menu is not centered, therefore the logo in not centered.
Is there a way to always center the specific menu item containing the logo? regardless of other menu items behavior or location on each side?
Or alternatively is there a way to always show a number next to the cart icon even when cart is empty?

Thank you in advance. Congrats on 2.0 rolling out ;)

This does not suit me for many reasons.

What about always showing the price next to the cart logo?

Thanks

You could try this:

.wc-menu-item .amount:empty:after {
    content: "$0.00";
    padding-left: 5px;
}

As always - you rule.

Thanks ;)

You're welcome :)

This archived topic is closed to new replies.