Create a custom header menu in Shopify

A nested menu is a great solution for effectively organizing collections products and pages. Nested navigation uses the Shopify links object.

  1. Place the following code in the Sections/header.liquid file, or wherever you wish the nested navigation to appear.
  2. If used in a section, you can also create a settings option in the section schema, and replace the for-loop in this example with “` {% for link in linklists[section.settings.main_linklist].links %} “` where main_linklist is the id of the schema setting. This setting would specify a link_list picker, and the default value would be set to main-menu.
  3. Add relevant classes and styles to create dropdown functionality via CSS.

Share:

More Posts

best wordpress eocmmerce themes

Best wordpress ecommerce theme

These days more and more retailers are adding or moving to online stores, and they ’re always looking for ways to vend or vend themselves

best carpenter website in 2022

Best carpenter websites in 2022

Hiring someone for a carpentry design is n’t commodity to take smoothly. The stylish carpenter websites are polished and professional, giving people the print that

Send Us A Message