Sidebar Dropdown wont' collapse or expand

At some point over the past year or so my sidebar has stopped working as it used to. It is possible that I’ve changed something as I bumble my way through implementing new features from time to time.

I would like the sidebar sublists to expand and contract without actually going to the page by clicking on the + or - buttons.

Website: www.kingdom3d.com.au

Theme: Classic (pretty old)

sidebar.liquid:

{% capture active_url %}{% if template == "index" %}/{% elsif template contains "collection" %}{% if collection.handle %}/collections/{{ collection.handle }}{% elsif collection.current_type %}{{ collection.current_type | url_for_type }}{% elsif collection.current_vendor %}{{ collection.current_vendor | url_for_vendor }}{% endif %}{% elsif template contains "product" %}{% if collection %}/collections/{{ collection.handle }}{% endif %}/products/{{ product.handle }}{% elsif template contains "page" %}/pages/{{ page.handle }}{% elsif template == "blog" %}/blogs/{{ blog.handle }}{% elsif template == "cart" %}/cart{% elsif template == "search" %}/search{% elsif template == "article" %}{{ article.url }}{% endif %}{% endcapture %}

{% comment %}
  Blank state
{% endcomment %}
{% if linklists[settings.sidebar_linklist_1].links.size == 0 %}
  
    

{{ 'layout.sidebar_onboarding.shop_by_collection' | t }}

  

  {{ 'layout.sidebar_onboarding.shop_by_collection_description_html' | t }}
{% endif %}

{% for i in (1..5) %}
  {% capture setting_key %}sidebar_linklist_{{ i }}{% endcapture %}
  {% assign sidebar_linklist_handle = settings[setting_key] %}
  {% if linklists[sidebar_linklist_handle].links.size > 0 %}
    
  {% endif %}
{% endfor %}

{% if settings.sidebar_type_enable and shop.types.size > 0 %}
  
{% endif %}

{% if settings.sidebar_vendor_enable and shop.vendors.size > 0 %}
  
{% endif %}

{% if settings.sidebar_articles_enable and blogs[settings.sidebar_articles_blog].articles.size > 0 %}
  
{% endif %}

{% if settings.sidebar_content_enable %}
  
{% endif %}

Sidebar-partial.liquid:

{% if linklists[link.handle] == empty %}
  - {{ link.title }}
  

{% else %}
  - {{ link.title }}
      
      
      
    

    
        {% for link in linklists[link.handle].links %}
          - {{ link.title }}
        
        {% endfor %}
    
  

{% endif %}

I’m not sure if there’s supposed to be javascript running somewhere, but from the little I know I can’t really see any code there to effect the change

Thanks for your time

Hello @DanAtK3D ,

Issue is JS conflict which prevent many clicks to perform it’s actions.
I see your hamburger menu is also not working in mobile device.
To fix it try to fix the JS conflicts. You can find list of errors in below screen-shot.

Thanks

Thanks @Guleria

I’ll look into it

1 Like

Yes baby, fixed!