Tagged: Accordion, tab section
-
AuthorPosts
-
January 17, 2020 at 11:21 pm #1175721
I’ve created a page using a tab section with accordions in each tab section to break down a great deal of content. The problem is, switching between tabs does not close an accordion section that has been expanded.
Once a large accordion section is expanded, if the user selects a new tab, the page recognizes that an accordion section is still fully expanded, meaning any smaller accordion on other tabs is centered on a large page, and may not even be visible on a small screen without scrolling. Is there any way to force switching tabs to close any open accordion sections?
If this cannot be done I suppose creating 3 separate pages that look like a tab section will work instead, but we’d like to stick with the tab section on a single page if possible.
Thank you!
-
This topic was modified 5 years, 9 months ago by
CanarySystems.
January 20, 2020 at 12:56 pm #1176274Hey CanarySystems,
Thank you for the inquiry.
This is possible but you will have to create a custom script that simulates a click event and triggers the .toggler.activeTitle whenever one of the tab section title is clicked.
// https://kriesi.at/documentation/enfold/add-custom-js-or-php-script/#how-to-add-a-custom-function
// https://www.w3schools.com/jquery/event_trigger.asp
// https://www.w3schools.com/jquery/event_on.aspBest regards,
IsmaelJanuary 20, 2020 at 9:25 pm #1176456Thanks for your reply, I was looking into this when I realized there was an option for the tab section “Content Height”
This was set to “same height for all tabs” so I tried changing it to “auto adjust to content” and the behavior is exactly what I wanted. Thanks anyway for the recommendation but it looks like no scripting is needed!
January 20, 2020 at 9:56 pm #1176485Hi CanarySystems,
GLad you found a solution for you :)
If you need further assistance please let us know.
Best regards,
Victoria -
This topic was modified 5 years, 9 months ago by
-
AuthorPosts
- The topic ‘Potential Bug – Tab Section with Accordion’ is closed to new replies.
