SideBar navigation list

Follow

Comments

8 comments

  • Avatar
    Zetya Support

    Hi Grant,

    Here are the steps.

    First the link list:

    sidebar-1.png

    1. Go to the Navigation tab in Shopify Admin and click "Add Link List".
    2. Type "Sidebar" (without the quotes).
    3. Add links to the new sidebar menu.

    Now the collection:

    1. Go to the Collection tab and click on the collection you want to show a sidebar for.
    2. At the bottom of the screen find the Template drop down and choose "collection.sidebar".

    sidebar-2.png

    If all goes well you should see the sidebar template being used on the collection page: http://getvanity.myshopify.com/collections/sidebar-demo

    Thanks, Gavin.

  • Avatar
    mcat

    Hello! If I'd like to have the sidebar on the main collection page, is there any way? I do not see any dropdown. Thanks!

  • Avatar
    Zetya Support

    Hi mcat,

    Can you please open a new ticket so I can get some details and help you.

    Thanks, Gavin.

  • Avatar
    Rgcarlaw

    Hi Gavin,

    Could you please explain the significance of the creation of a link list in your step by step above. I created a link list as you suggested ,but it doesn't seem to alter what appears in the sidebar, which appears to be based on tags.

    What is the link list for and is there any way to specify what appears in the side bar?

    Thanks, Richard

     

  • Avatar
    Zetya Support

    Hi Richard,

    Sorry, these instructions are out of date now.

    To use the link list, replace the tag code (lines 13-15 in collection.sidebar.liquid) with the following:

    {% for link in linklists.sidebar.links %}
    <li>{{ link.title | link_to: link.url }}</li>
    {% endfor %}

    Gavin.

  • Avatar
    Rgcarlaw

    Hi Gavin,

    Thanks very much for this. I'm at work just now, so not able to try this out, but can you tell me, does this approach maintain the scope of the current collection? If not, I may be better sticking with the tags and collection.all_tags

    Thanks,

    Richard

  • Avatar
    Zetya Support

    Hi Richard,

    No, there is no way to make links dynamic in terms of knowing what collection is currently being looked at.

    Thanks, Gavin.

  • Avatar
    Fahmeeda

    Hi,

    i have the same problem. I cant locate my collection.sidebar.liquid??

Please sign in to leave a comment.