Making top level nav bar clickable: Berlin Theme

Topic summary

A user is attempting to make top-level navigation items clickable in the Berlin theme, even when dropdown menus exist on hover. This functionality isn’t available by default.

Current situation:

  • The user suspects modifications are needed in the header.liquid file
  • They’ve identified a specific code section in the navigation structure that likely controls this behavior
  • The code snippet shows the header navigation menu logic, though portions appear corrupted or reversed

Next steps:

  • Another user has offered to help update the code
  • They’ve requested three specific snippet files to proceed:
    • header-link.liquid
    • header-submenu.liquid
    • header-mega-menu.liquid

The discussion remains open, awaiting the file sharing to enable the requested customization.

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

We are setting up a new site and would like to make the top-level nav bar clickable even when there is a drop-down on hover, to my understanding this isn’t possible natively. Does anyone know which part of the header.liquid file we need to edit to make this happen.

My guess is that is somewhere in here:

{%- if section.settings.menu != blank -%}
    {%- for link in section.settings.menu.links -%}
  • {%liquid for block in section.blocks assign menu_trigger = block.settings.menu_trigger | handle | strip if link.links != blank or block.type == "mega_menu_only_collection" and block.settings.collection_list != blank and link.handle == menu_trigger if link.handle == menu_trigger render 'header-mega-menu' links: link.links, block: block , link: link break elsif forloop.last render 'header-submenu' links: link.links , link: link endif elsif forloop.last render 'header-link' link: link endif else if link.links != blank render 'header-submenu' links: link.links, link: link else render 'header-link' link: link endif endfor %}
  • {%- endfor -%}
{%- endif -%}

Hi @Editor439 ,

Could you share code these files? I will help to update code.

  • Snippets/header-mega-menu.liquid

  • Snippets/header-submenu.liquid

  • Snippets/header-link.liquid