Site logo

Archived topic

Hide Toogle Menu Secondary Navigation And Show All The Item

11 replies · Started by Randy on September 23, 2020

Viewing posts 1–12 of 12

Can I do this by my self,

From this

To like this

hide toogle menu

I wannta disable breakpoint, and make it possible to swipe right and left

Wow its work.. but I need your help.. can I make it horizontal not stacked up.

https://prnt.sc/umisw9

I have attach my blog. Please check it out..

I cannot see the Secondary nav on the URL you supplied ?

Please try on mobile version. I use this for only display on mobile

@media (min-width: 768px) {
.secondary-navigation {
display: none;
}
}

Thanks leo, I purposely did it for the testing. Is it stay on one line or not.

Would you help me, make it one line and swipe able like david said?

I have attached my login.

Replace the CSS with this:

@media (max-width: 768px) {
    .secondary-navigation {
        text-align: center !important;
        overflow-x: scroll;
        -ms-overflow-style: none;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }

    .secondary-navigation ul {
        display: flex;
    }

    .secondary-navigation .sf-menu>li {
        flex: 1 0 120px;
        scroll-snap-align: center;
    }
}

.secondary-navigation .menu-toggle {
    display: none;
}

You can adjust the Menu Item Width in Customizer > Layout > Secondary Nav.

And in the above CSS this line: flex: 1 0 120px; sets the min width of each item.

Thank very very much david. It Works....

I love Generatepress team, this is the reason I dont interested on other theme..

Thanks..

You're welcome

This archived topic is closed to new replies.