Sidenav with sublink's!

Hello All,
I want to create a side nav with a sublink and I know it can only be done with some custom code. I have tried to apply some logic but I must be doing something wrong with the syntax could anyone help me figure out this.

Read-only

What I want is to display page 5A only when page 5 is active. i.e when webflow adds w–current on the page 5 link.


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Hey, guys if anyone looking for the solution here’s is the code I wrote.

if((".your-page-class").hasClass('w--current')){ (".your-page-init-hidden-class").show();
}
else if((".your-page-init-hidden-class").hasClass('w--current')){ (".your-page-init-hidden-class").show();
}