[Resolved] Issue on GP Beta 3 with niche theme centering logo and having menu in left+right

Home Forums Support [Resolved] Issue on GP Beta 3 with niche theme centering logo and having menu in left+right

Home Forums Support Issue on GP Beta 3 with niche theme centering logo and having menu in left+right

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1437738
    Adrien

    Hello,

    Im trying to center my logo and make the primary menu spread on left and right using a menu custom link separator with the css class as menu-item-separator.

    I have followed all instructions in this article: https://docs.generatepress.com/article/centering-logo-navigation/

    However it does not seem to work.

    Would appreciate your help there. Thank you very much. Adrien

    #1437892
    David
    Staff
    Customer Support

    Hi there,

    can you disable your cache, and remove the Split Nav CSS so i can provide some new CSS.

    #1438490
    Adrien

    Hey David, Thanks a lot. I have disabled the cache and removed the split nav CSS code.

    #1438623
    Tom
    Lead Developer
    Lead Developer

    Stole this CSS from David a while back, worth a shot:

    @media (min-width: 769px) {
        .navigation-branding {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            text-align: center;
        }
    
        .main-nav {
            margin-left: unset;
            flex-basis: 100%;
        }
    
        .main-navigation li:nth-child(2) {
            margin-right:auto;
        }
    
        .main-navigation .inside-navigation {
            flex-wrap: nowrap;
        }
    }

    Let us know πŸ™‚

    #1438630
    Adrien

    πŸ˜‰ Thanks a lot Tom. Actually it almost worked. Here is how it looks like:

    https://tinyurl.com/yyhq48ny

    It seems the menu custom link separator with the css class as menu-item-separator does not work.

    Appreciate all your fantastic support.

    #1438634
    Tom
    Lead Developer
    Lead Developer

    You can actually just remove that menu item separator – it’s not necessary with this code.

    Then you can fix the cart menu item with this:

    .menu-bar-items {
        flex-shrink: 0;
    }
    #1438653
    Adrien

    Tom thanks a ton! It worked perfectly πŸ˜‰

    #1438770
    Tom
    Lead Developer
    Lead Developer

    Awesome, glad I could help πŸ™‚

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