[Resolved] Navigation logo centering problem

Home Forums Support [Resolved] Navigation logo centering problem

Home Forums Support Navigation logo centering problem

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #444377
    mike

    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 πŸ˜‰

    #444450
    Leo
    Staff
    Customer Support

    Hi there,

    It’s a bit tricky. But if you are not using the secondary navigation, you can also try this: https://generatepress.com/forums/topic/feature-request-for-header-and-navigation-layout/#post-266841

    #444697
    mike

    This does not suit me for many reasons.

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

    Thanks

    #445001
    Tom
    Lead Developer
    Lead Developer

    You could try this:

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

    As always – you rule.

    Thanks πŸ˜‰

    #445306
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

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