Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

GB 2.0 Nested Accordion Issue

  • Hi, team, first of all great to see tons of new features in GB 2.0

    But this morning i came accross this issue, where if you put accordions inside accordion meaning nested accordion then the accordion inside are always open, you can not close them.

    I need it so badly for a website.

    Please guys have a took at this;
    Nested Accordion

  • Hi there,

    Try adding this CSS:

    .gb-accordion__item-open .gb-accordion__content {
        max-height: 0;
        visibility: hidden;
    }
    
    .gb-accordion__item-open > .gb-accordion__content {
        max-height: inherit;
        visibility: visible;
    }

    Let me know if this helps!

  • That solved the problem. Thank you very much

  • You are welcome   🙂

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