[Support request] Off-Canvas Submenu

Home Forums Support [Support request] Off-Canvas Submenu

Home Forums Support Off-Canvas Submenu

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1406774
    John

    Hi…

    In the off-canvas menu, I’d like a selected submenu to remain open. Is that doable?

    Thanks!

    #1406993
    Leo
    Staff
    Customer Support
    #1407608
    John

    Thanks, Leo.

    I had been using this code, which seems to work sufficiently to expand the entire menu structure. What I was hoping for is that only a top-level menu section where a submenu has been selected would be open, and all other top-level sections would remain closed.

    .slideout-navigation .inside-navigation {
        padding: 0;
    }
    
    #generate-slideout-menu .sub-menu > li > a {
        padding-left: 30px;
    }
    
    #generate-slideout-menu .sub-menu  .sub-menu > li > a {
        padding-left: 60px;
    }
    #1407649
    David
    Staff
    Customer Support

    Hi there,

    try this CSS:

    #generate-slideout-menu.main-navigation ul li.current-menu-parent ul {
        display: block !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        height: auto;
        overflow: visible;
    }
    #1407674
    John

    Nice. I added little padding too, to indent the submenus a little.

    #generate-slideout-menu.main-navigation ul li.current-menu-parent ul {
        display: block !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        height: auto;
        overflow: visible;
        padding: 30px;
    }

    Thanks, David.

    #1407675
    David
    Staff
    Customer Support

    You’re welcome

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