Site logo

Archived topic

How to add logo to the center of the page on sticky menu?

5 replies · Started by Henry on July 9, 2019

Viewing posts 1–6 of 6

I'd like the menu to also be centered on the sticky nav: https://prnt.sc/ocpnxe

What I achieved was pushing the logo to the left...

Thanks for all help!

Hi there,

try this CSS:

@media (min-width: 769px) {
    #sticky-navigation .main-nav,
    #sticky-navigation .main-nav .menu-item-separator {
        flex: 1;
    }

    #sticky-navigation .navigation-branding {
        position: absolute;
        left: 50%;
        transform: translatex(-50%);
    }
}

Thanks - that worked, however, I think I have to play with the larger non-sticky logo to make it sync with the scroll; probably best if I made the larger non-sticky logo smaller...

Yeah - unless you use the navigation as header then there will be that transition issue. To help a little you could use this CSS:

.sticky-enabled .main-navigation.is_stuck {
    z-index: 1000 !important;
}

It will make sure the sticky nav sits in front of the site header branding.

This archived topic is closed to new replies.