Site logo

Archived topic

Force secondary nav on tablet to be hamburger menu like mobile

3 replies · Started by Glenda on February 5, 2022

Viewing posts 1–4 of 4

Is there custom css that can be added to force secondary navigation on tablets to be a hamburger menu, like on mobile? The website is https://glendaembree.com

Thank you!

Hi there,

try this CSS:

@media (max-width: 1024px) {
    .secondary-navigation .menu-toggle {
        display: block;
    }

    .secondary-navigation ul,
    .secondary-navigation:not(.toggled) .main-nav>ul {
        display: none;
    }

    .secondary-navigation .inside-navigation {
        flex-direction: column;
    }

    .secondary-navigation .inside-navigation .main-nav {
        width: 100%;
    }
}

Adjust the @media (max-width: 1024px) px value to suit the size tablet you want it applied to

That still doesn't seem to work, but I'll keep tinkering with it. Thanks for giving me a place to start.

This archived topic is closed to new replies.