[Resolved] Mobile only default Sub Menu Expand

Home Forums Support [Resolved] Mobile only default Sub Menu Expand

Home Forums Support Mobile only default Sub Menu Expand

  • This topic has 3 replies, 2 voices, and was last updated 5 months ago by Ying.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1753506
    Daniel

    Hello!

    I have checked previous tickets about hamburger menu with automatically expanded sub menu items, but neither THIS works in my case, nor THIS .

    Could you please help me what can be the solution in my case?

    • WordPress v5.7.1
    • Generatepress v3.0.3
    • GP Premium v2.0
    • GenerateBlocks v1.3.3
    • Simple CSS v1.1.1

    Thanks in advance,

    #1753653
    Ying
    Staff
    Customer Support

    Hi Daniel,

    Do you want the sub menu open by default on mobile? If so try this CSS:

    .dropdown-click #mobile-header.main-navigation.toggled ul, .dropdown-click #mobile-header.main-navigation.toggled ul li > ul {
        display: block;
        opacity: 1;
        visibility: visible !important;
        pointer-events: auto;
        height: auto;
        overflow: visible;
    }
    #mobile-header.main-navigation.toggled .main-nav ul ul{
        position: relative;
        top: 0;
        left: auto!important;
        right: auto!important;
        width: 100%;
        float: none;
    }
    #1753666
    Daniel

    Hello Ying,

    Really appreciate your help, this code works fine! ๐Ÿ™‚

    #1753689
    Ying
    Staff
    Customer Support

    Great, glad to hear that ๐Ÿ™‚

    You are welcome!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.