Mobile Menu Menupoint jumps to the top

Hello,

i have a mobile menu with a couple auf subitems. When i push for example the Menupoint “über uns” then this point jumps to the top. It is possible, that the Menupoint stays where it was and the subitems comes under it?
Picutres in attachmend.
Greetings
Andre


Is it possible to turn the subitems off?

I used this code to turn it off, but now i have to tip two times on the nav point to get to this site (just the one point where the subitems was):

.brxe-nav-menu .bricks-mobile-menu-wrapper li[aria-expanded=“true”] .sub-menu {
display: none !important;
}

Is there a solution that works with one tip on the nav-point?

Hellloooooooooooooo, anyone outhere?

Anyone a tip for me?

Hi Andre,
Sorry for the late reply!

The “jump” is probably caused by expanding the submenu. At the moment I don’t see any way to work around this.

You can’t disable the submenu items, but you can create two separate menus, one for desktop including submenus and one that is only displayed mobile, without submenus.

The problem with mobile navigation is that we need to cover two actions: opening the submenu and opening the corresponding page if the parent menu item contains a link. That’s why the two clicks are necessary in that case.

Best regards,
timmse

I think the jump comes from the fact that your menu is vertically centered.
Align to top to see if it fixes the issue.

As for the link pb, I think it’s a bad practice anyway to make a parent item a link (even on desktop).
You should better use an empty custom link (’#’) as parent and put the link as the first subitem.

1 Like

Thank you guys!! I try what is the best solution in this case.

So i got it. I aligned it to the top an made margin top (in my case 30%) and now it works! nice

1 Like