I made a custom header for my Shopify store that uses the same dropdown menu as on mobile display. It functions without issue on mobile but when I click the hamburger-style dropdown menu or the word “menu” beside it, nothing happens. It’s recognizing being clicked because if I toggle to mobile display the dropdown menu is open. It just isn’t displaying the dropdown options when clicked on desktop.
Below is my code for section/header.liquid please take a look and let me know what needs to be fixed, added, removed, etc to make the dropdown options appear on desktop.
{% if section.settings.show_announcement or section.settings.header_search_enable %}
{% comment %}
Add social links to header
{% endcomment %}
{% comment %}
{% include 'social-links' %}
{% endcomment %}
{% if section.settings.show_announcement %}
{% if section.settings.announcement_link != blank %}
{% endif %}
{{ section.settings.header_text | escape }}
{% if section.settings.announcement_link != blank %}
{% endif %}
{% elsif section.settings.header_search_enable %}
{% include 'search-bar' with 'header' %}
{% endif %}
{% endif %}
{% if section.settings.header_search_enable %}
{% if section.settings.show_announcement %}
{% include 'search-bar' with 'header' %}
{% endif %}
{% endif %}
{% if section.settings.show_announcement %}
{% if section.settings.announcement_link != blank %}
{% endif %}
{{ section.settings.header_text | escape }}
{% if section.settings.announcement_link != blank %}
{% endif %}
{% endif %}
{{ 'layout.cart.title' | t }} {{ cart.item_count }}
{% include 'mobile-nav' with linklists[section.settings.nav_menu] %}
{% endif %}