Now we need to edit the theme so it understands there may be sub-menus. Typically, the code for the menus is in theme.liquid. Open it up and look for the code that is creating the menu items. You need to modify this so it looks for a matching link list, and if it finds one it outputs those links as well. Here is some sample code from the Vanity theme:
{% for link in linklists.main-menu.links %}
<li>
<a href="{{ link.url| escape }}">{{ link.title | escape }}</a>
{% if linklists[link.handle].links.size > 0 %}
<ul>
{% for sublink in linklists.[link.handle].links %}
<li><a href="{{ sublink.url }}">{{ sublink.title | escape }}</a></li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
Now your page will have the additional links under the top level item.
You may need to add some CSS styling to make the menus appear properly. Alternatively, pick an example menu from the excellent CSS play site: http://www.cssplay.co.uk/menus/
That is it. You can see it in action here: http://getvanity.myshopify.com.


Comments
No one has commented yet. Why not be the first?