Hi I’m using an accordion as a widget nav for a course type of website, the lessons are separated into chapters hence I’ve used the accordion to separate the lessons into the correct chapter so the navigation can collapse and open with a click of the button, similar to how the Themeco Docs Navigation is set out.
What I am struggling to figure out is a way to only have the correct accordion open based on what page is open.
As an example if I have 3 chapters each with 3 lessons this equals to three separate accordions,
if I open chapter 2 lesson 1 - is there a way to have the correctly associated accordion open with the page that is currently open.