Skip to product information
1 of 1
Published:2026.06.14

[Horizon] Auto-generate a same-level (sibling) navigation menu from your main menu

[Horizon] Auto-generate a same-level (sibling) navigation menu from your main menu

Applications

  • ナビゲーション管理・編集
View full details

When your Shopify main menu is built out to a second or third level, moving between items on the same level still forces shoppers to reopen the menu every time — a small but real friction. This is how to make the Horizon theme automatically show a sub-menu that mirrors your main menu structure, so visitors can move across the same level with one tap.

Auto-generate a same-level (sibling) navigation menu from your main menu — Horizon theme


Result: sibling navigation menu


[Setup] Add a Custom Liquid section to the header group and paste the code

Setup: add a Custom Liquid section to the header


In Horizon the header is a "section group". In the theme editor, open the "Header" area, choose "Add section" > "Custom Liquid", and paste the code included with your purchase. That alone renders a horizontal sub-menu of the current page's sibling links directly beneath the header on every page.

The code is almost identical to the Dawn version — the only real change is a single CSS selector. Because Horizon wraps each section in a div (.shopify-section) instead of a section element, section:has(...) is replaced with .shopify-section:has(...). This preserves the original trick of showing the sub-menu only on pages that have siblings and hiding it everywhere else.


Dawn theme version: Auto-generate a same-level navigation menu from your main menu (Dawn)

After making a purchase (all items are ¥0), you will be able to view the sample code.

If you have already made a purchase, please login here.

Sample Codes

Test Theme :Horizon 3.5.1

【設定手順】ヘッダーグループにカスタムLiquidセクションを追加してコードを挿入