• Hey guys,

    I’m trying to sort out an issue I’m having with my main menu. It appears correctly when you are scrolled to the top of the page, but if you slowly scroll down it will disappear and then reappear doubled in size, with extra space being added above it. Does anyone have a solution to this? I’d like for it to either not become larger when scrolling or just simply not scroll with the page.

    Thanks!

    John

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    The problem is coming from the height of your links, which you’ve tried to shorten using this style:

    
    #top-menu {
        ...
        height: 38px;
    }
    

    This doesn’t work, because the links still have height above the link text (which is causing the gap).

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Actually there are many styles you’ve added that are going to cause problems with the height of the header.

    It’s better if we start from scratch.

    Can you describe how you want your header to appear on desktop and mobile?

    Thread Starter pepelepew040

    (@pepelepew040)

    Hi Andrew, I appreciate you taking a look. I would like for the header to not be present and for the menu to remain at the top of the page. I had tried removing the header (display: none) but that removes the menu as well, so I jerry-rigged some code to move it out of view and resize the menu. I understand that’s not the correct way to do it, though.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    In the “Additional CSS” part of the dashboard try adding this to the bottom:

    
    #masthead .navigation-top {
        margin-bottom: 0;
    }
    
    #top-menu {
        height: auto;
        margin: 0;
    }
    
    .site-navigation-fixed.navigation-top {
        position: static !important;
    }
    
    .navigation-top {
        position: static;
    }
    
    .hero-slider .home-slider-overlay {
        opacity: 0.7 !important;
    }
    
    .main-navigation a {
        padding: 0 1.25em;
    }
    
    .main-navigation li {
        margin: 0;
    }
    
    .page-id-174 .site-header {
        margin: 0;
    }
    .custom-header {
        display: none;
    }
    
    .navigation-top .wrap {
        max-width: none;
        padding: 0;
    }
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Top Menu Expansion Issue’ is closed to new replies.