[Resolved] Split menu with logo in the center?

Home Forums Support [Resolved] Split menu with logo in the center?

Home Forums Support Split menu with logo in the center?

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1290058
    Mike

    Hi awesome people,

    How can I create a navbar with a logo in the center, similar to roastycoffee.com?

    Thanks so much πŸ™‚

    #1290067
    Natalie
    #1290097
    David
    Staff
    Customer Support

    Thanks for the assist Natalie πŸ™‚

    #1290361
    Mike

    Thanks so much, @Natalie.

    One more issue – the logo is in the center, though all menu items are on the right. How do I split them to both sides?

    Thanks again πŸ™‚

    #1290367
    David
    Staff
    Customer Support

    Can you share a link to your site so we can see what the issue is?
    You can edit your original topic and use the Site URL field to share the link privately.

    #1290374
    Mike

    Hi @David!

    Thanks for the prompt response.

    I just shared my website url πŸ™‚

    #1290538
    Leo
    Staff
    Customer Support

    Can you try arranging the menu item as how you want them to show up?

    Like moving the Home and About menu item before the menu item separator item

    #1291624
    Mike

    Yes, I’ve tried that several times. It’s not moving 😐

    #1291796
    David
    Staff
    Customer Support

    Add this CSS to your Site:

    .main-navigation:not(.slideout-navigation) .main-nav {
        flex: 1;
    }

    Then move the menu-item-separator to where you require it – eg. between Home and About.

    #1292582
    Mike

    Thanks @David!

    It’s in the middle now but the mobile nav isn’t working :'(

    How can I make it work?

    #1292833
    David
    Staff
    Customer Support

    Remove just the CSS you have added for the split menu and use this instead:

    .navigation-branding {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translatex(-50%);
    }
    
    .main-nav {
        flex: 1 0 100%;
    }
    
    .menu-item-separator {
        visibility: hidden;
        pointer-events: none;
        flex: 1;
    }
    
    .main-navigation .mobile-bar-items {
        margin-right: auto;
    }
    
    @media (min-width: 769px) {
        .main-navigation ul.menu {
            display: flex;
        }
    }
    
    @media(max-width: 768px) {
        .main-navigation.toggled .main-nav li.menu-item-separator {
            display: none !important;
        }
    }
    #1293196
    Mike

    Now the logo has disappeared 😐

    #1293252
    David
    Staff
    Customer Support

    You need to remove all the CSS you originally added for the Split Menu.

    #1293296
    Mike

    It’s working fine now! Thanks so much, @David πŸ™‚

    #1293437
    David
    Staff
    Customer Support

    Glad to hear that πŸ™‚

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