By default, there are two different ways to display categories in the category list on the side of the homepage, that the BigCommerce templates allow: a simple list and a fly-out menu. However, you may want to have a collapsible menu instead. You can do this with some JavaScript code.
Preparation
In order to get this done, you will have to follow 3 simple steps:
- Go to Settings > Store Settings > Display tab and set the categories to be displayed in a simple list (depth: 2)
- Open the file called SideCategoryList.html (Design > Browse Template Files) and add the following code
- Enjoy!
How does it look implemented on a BigCommerce store
Check out the video below to see how the collapsible category menu will look if implemented in the templates of a BigCommerce store.
If you have any improvements, or would like to say thanks just comment below!
Also, if you are having problems installing this then why not request a quote and we can go ahead and install it for you