Site logo

Archived topic

Problem with sticky navigation

9 replies · Started by Daniel on December 11, 2018

Viewing posts 1–10 of 10

Hi,

i'm building a site that was designed by a graphic designer - which involves quite some customization.

I've set the sticky navigation to switch to the menu toggle at 1130px.

This messes up my menu items.

After hours of searching i connot find the error. Could you kindly have a look and guide me in the right direction?

Thanks a lot,
Daniel

Hi there,

Can you explain a bit more about the actual issue?

I don't see the menu items being "messed up".
https://www.screencast.com/t/ybjCUtGst

One thing you can do to narrow down the problem is to temporarily comment out/remove your custom CSS then slowly add them back in to see which one is causing the problem.

Let me know :)

Again what exactly do you mean it's "messed up"?

Like the empty space you are showing in the screenshot?

Looks like it's coming from this CSS:

@media (max-width: 1130px) {
    #menu-hauptmenu a {
        height: 18px;
        display: block;
        margin-top: 0px;
    }
}

Have you tried my suggestion of temprarily removing the CSS to see which one is causing the problem?

Sorry, i'll try to be more clear: (and yes, i have tried to temporarily remove all css and add it back in)

Below 1130px the last menu-item is outside of the dropdown area (see my screenshot)
The last menu-items are on top of each other.

When i'm in dev-tools and i hover below the logo, it seems there are 2 invisible menu-items (again - see my screenshot)

I could not find the reason for this behaviour. Removing the css you mentioned did not change much.

Thanks again,
Daniel

I think i found the issue:

.main-navigation .main-nav ul li a,
.menu-toggle,
.main-navigation .mobile-bar-items a {
line-height: 23px;
}

I added this css. Before the line-height was way to high. This came from some setting inside the customizer. (not sure which one)

I will mark this as solved, thank you for your help! :-)

Glad you found the issue :)

This archived topic is closed to new replies.