Sidebar Collapsible Menu
-
Hello!
I’m currently building a sidebar menu that will be displayed on all of our FAQ pages.
I initially created a custom menu that would collapse utilizing JS(jQuery). Since there are currently 36 different FAQ pages, possibly more in the future, I didn’t want a static menu that would cause issues down the line. For example…
- Each subcategory, and the specific FAQ page being displayed would have an ‘active’ class. This helps the viewer see what page they’re reading and in what section within the larger FAQ sidebar menu. Adding the ‘active’ class to the appropriate page/category for all 36 is not only time consuming, but additional pages added at a later time would require me to change the custom HTML sidebar menu for all pages. (The custom HTML was being added to each page individually, changing the ‘active’ class where appropriate.)
- Including a custom HTML widget with the jquery code, that would be added to each FAQ page seemed like a better option. However, I’m not sure how I can specify the current FAQ page/category if I’m using the same code within the widget for all pages.
So after that hurdle, I decided to just create a normal sidebar that can be displayed on all FAQ pages. However, now that all 36 pages are added to the menu, it’s rather long. In fact, the menu extends past most of the pages content. It looks pretty bad in my opinion. That is what led me here. I’m trying to figure out a way to have that sidebar menu collapse. I realize this does not solve the issue of actively displaying the current page and category but I want to get this working first, then iterate.
If anyone can help, or suggest a plugin to use for the scenario I’d greatly appreciate it!
-Pete
The page I need help with: [log in to see the link]
- The topic ‘Sidebar Collapsible Menu’ is closed to new replies.