[Support request] Keep sub-menu open

Home Forums Support Keep sub-menu open

This topic contains 5 replies, has 2 voices, and was last updated by  Tom 2 months, 2 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 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-ancestor > .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 🙂

    #946767

    Marc

    Dear Tom!

    Thank you very much for your help! The menu keeps open if I am on the page. But if I am on a subpage, it does not work 🙁

    Do you have an idea?

    Kind regards

    #947180

    Tom Lead Developer

    Hi there,

    Is the CSS active right now? I’m not seeing it on the site.

    Let me know 🙂

    #947673

    Marc

    Dear Tom!

    I’ve deactivated it. Now it’s active again. Here is the problem. I click on a 1st level menu item and the submenu keeps open. Now I click on a submenu item (2nd level) and the submenu disappears. I am talking about the mobile version.

    Thank you very much in advance for your help!

    Kind regards,

    Marc

    #948152

    Tom Lead Developer
Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.