• Resolved cestab

    (@cestab)


    Hello,

    I can’t seem to figure out why the submenu doesn’t open in mobile view?

    Any ideas?
    Thanks

    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

    Because of your CSS:

    
    .main-navigation ul ul {
        border-bottom: 0px;
        display: block;
        left: -999em;
        margin: 0;
        position: absolute;
        z-index: 99999;
    }
    

    You’ve set the submenu item to always be positioned off the screen (left: -999em) regardless of whether it’s opened or not.

    Try adding this:

    
    .main-navigation ul ul.toggled-on {
        left: 0;
        top: 100%;
    }
    
    Thread Starter cestab

    (@cestab)

    Excellent, thank you very much that worked.

    Thread Starter cestab

    (@cestab)

    Hello, this has solved the mobile view but has effected the desktop, by keeping the menu open when an sub item clicked

    Thread Starter cestab

    (@cestab)

    Ok sorry I’ve solved this issue

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Submenu mobile not opening’ is closed to new replies.