Hi, when navigating nested menus we need the collection only show sub collection(no products). Products we only need to see on the last sub collection to which this products belong. I did try to edit code under list-collections-template.liquid but this did not work. Also we will have a LOT of subcategories so creating custom page for each is not good, thank you.
I did try this but it did not work:
-
In the Sections directory, click list-collections-template.liquid.
-
Find each occurrence of the following code:
{% for collection in collections %}
Some themes contain the following code instead:
{% for collection in list_collections %}
Replace each occurrence of the above code with:
{% for link in linklists.all-collections.links %}
{% assign collection = link.object %}
Hi @APPLEMARINE ,
You can’t edit the list-collections-template.liquid file, it won’t work well. If you don’t want to create multiple templates for this list, you can create a template and use the handle to separate it. This is going to be a complicated request because it needs to define the theme’s file structure, test it, and give detailed instructions. So if you have experience in coding, I will guide you with the idea to make it work.
First, you need to create a menu for these list collections, which has a default handle according to the handle of the collection. Ex: collection with handle: test => menu with handle: nav-test
Then create a template for it and you use the handle to get the menu and display the collection.
Hope it helps!
I really appreciate your detailed answer. No we do not have this coding experience. We are trying to look at the sidebar navigation apps. Thank you again.
Hi @APPLEMARINE ,
If you have no experience, you can hire an expert, they will help you quickly: https://community.shopify.com/category/shopify-job-board
If it helped you solve your issue, please mark it as a solution. Thank you and good luck.