Site logo

[Resolved] Accordion / Tab

Home Forums Support [Resolved] Accordion / Tab

Home Forums Support Accordion / Tab

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2525343
    ammgbr

    On my homepage, I have a navigation block menu within a GB tab (which is itself within a GB accordion) not expanding completely with only 2 submenu options visible on click:

    Accordion (name: investing) > Tab (general) > navigation block (Indices: List of companies) > submenu: only the first 2 links are visible.

    Is there any fix I have been missing? I have tried deleting the nav block and reinserting it. It was working fine previously (within another block )

    #2525351
    Fernando
    Customer Support

    Hello there,

    Can you try adding this through Appearance > Customize > Additional CSS?:

    .home nav.is-layout-flex.wp-block-navigation ul.wp-block-navigation__container li.wp-block-navigation-item.has-child.wp-block-navigation-submenu ul.wp-block-navigation__submenu-container {
        overflow-y: scroll;
        height: 100px;
    }
    #2525606
    ammgbr

    This works only for items further up the list, the ones towards the end dont generate this css – you can only see the first 2 options from the submenus

    #2525766
    David
    Staff
    Customer Support

    Hi there,

    1. remove Fernandos CSS

    2. Add this CSS:

    .wp-block-navigation.custom-nav .wp-block-navigation-item {
        display: grid;
        grid-template-columns: 1fr 10px;
    }
    .wp-block-navigation.custom-nav button[aria-expanded="true"] + span + .wp-block-navigation__submenu-container {
        position: static;
    }
    .gb-container .gb-shape {
        position: absolute;
        overflow: hidden;
        pointer-events: none;
        line-height:0
    }

    3. Select the Navigation Block in Advanced > Additional CSS Classes add: custom-nav

    #2525871
    ammgbr

    Thank you that resolved it!

    #2526170
    David
    Staff
    Customer Support

    Glad to hear that

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