[Support request] Keep sub-menu open

Home Forums Support Keep sub-menu open

This topic contains 1 reply, has 2 voices, and was last updated by  Tom 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #927164

    Marc

    I have the following situation:

    – Page 1
    — Subpage 1a
    — Subpage 1b
    — Subpage 1c
    – Page 2
    — Subpage 2a
    — Subpage 2b
    — Subpage 2c
    – Page 3
    – Page 4

    Now I want to have the following. If the user is on Page 1 (or on a subpage) and opens the menu, then the subnavigation should be open and show the subpages. This should only happen on the mobile version (because most people don’t know, that they have to click on the arrow to open the submenu).

    How can I make this possible?

    Thank you very much in advance for your help!

    #927782

    Tom Lead Developer

    Hi there,

    Give this a shot:

    .toggled .current-menu-item > .sub-menu, 
    .toggled .current-menu-acestor .sub-menu {
        visibility: visible;
        height: auto;
        opacity: 1;
        left: auto;
        overflow: visible;
        position: relative;
        pointer-events: auto;
    }
    
    .toggled .current-menu-item > a > .dropdown-menu-toggle, 
    .toggled .current-menu-ancestor > a > .dropdown-menu-toggle {
        display: none;
    }

    Let me know 🙂

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.