Hello,
I’m not sure where to post this. I’m looking for help fixing a Shopify issue using the liquid programming language. I couldn’t find a category for it but it looks similar to JS logic…
Here is the website: www.jjsuspenders.com
My right-menu is not showing the sub-nav items. (look at the menu on the left and you will see what I’m going for). How do I fix this in the liquid code?
Thanks!
<div id="nav">
<ul id="menu">
{% for link in linklists[settings.main_linklist].links %}
{% if linklists[link.handle] == empty %}
<li><a href="{{ link.url }}" title="{{ link.title }}" {% if link.active %}class="active"{% endif %}>{{ link.title }}</a></li>
{% else %}
<li><a href="{{ link.url }}" title="{{ link.title }}" {% if link.active %}class="active"{% endif %} {% for link in linklists[link.handle].links %}{% if link.active %}class="active"{% endif %}{% endfor %}>{{ link.title }}
<span class="arrow">∨</span></a>
<ul>
{% for link in linklists[link.handle].links %}
{% if linklists[link.handle] == empty %}
<li><a href="{{ link.url }}" title="{{ link.title }}">{{ link.title }}</a></li>
{% else %}
<li><a href="{{ link.url }}" title="{{ link.title }}">{{ link.title }} <span class="arrow"> ⟩</span></a>
<ul>
{% for link in linklists[link.handle].links %}
<li><a href="{{ link.url }}" title="{{ link.title }}">{{ link.title }}</a></li>
{% endfor %}
</ul>
</li>
{% endif %}
{% endfor %}
</ul>
</li>
{% endif %}
{% endfor %}
<!-- New Code -->
</ul>
<ul id="right-menu">
{% for link in linklists.right-menu.links %}
<li><a href="{{ link.url }}">{{ link.title }}</a></li>
{% endfor %}
</ul>
</div>
</div>