Shopify Liquid Help

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">&or;</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"> &rang;</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>

Not sure if it is anything to do with it, but if you look at the console (F12 > Console) you see:

Uncaught SyntaxError: Unexpected token <

on line 5902 of index.html.

Either way, you’ll probably want to get that fixed.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.