Footer Error: Line 16 — Liquid syntax error: Expected id but found open_square in "link in link

Solved
New Member
4 0 0

I am getting the following Error using Ella theme

 

  • Line 16 — Liquid syntax error: Expected id but found open_square in "link in linklists.[footerCol1].links"
  • Line 38 — Liquid syntax error: Expected id but found open_square in "link in linklists.[footerCol2].links"
  • Line 59 — Liquid syntax error: Expected id but found open_square in "link in linklists.[footerCol3].links"

Below are the Respective lines

Line 16

{% for link in linklists.[footerCol1].links %}

 

line 38

{% for link in linklists.[footerCol2].links %}

 

 

line 59

{% for link in linklists.[footerCol2].links %}

 

My column 1 & 3  are showing blanks. what am i doing wrong. Full footer liquid is as below

shop.png

 

 

<footer class="site-footer" role="contentinfo">
<div class="container">
<div class="footer-top">
<div class="row">
{% if settings.footer_column_1_title != blank %}
<div class="col-1 wow fadeInUp" data-wow-delay="{{ settings.time_lazy_load }}ms">
{% if settings.enable_multilang %}
<h3 class="lang1">{{ settings.footer_column_1_title | split: '|' | first }}</h3>
<h3 class="lang2">{{ settings.footer_column_1_title | split: '|' | last }}</h3>
{% else %}
<h3>{{ settings.footer_column_1_title | split: '|' | first }}</h3>
{% endif %}

<ul>
{% assign footerCol1 = settings.footer_column_1_title | handleize %}
{% for link in linklists.[footerCol1].links %}
{% if settings.enable_multilang %}
<li class="lang1">{{ link.title | split: '|' | first | link_to: link.url }}</li>
<li class="lang2">{{ link.title | split: '|' | last | link_to: link.url }}</li>
{% else %}
<li>{{ link.title | split: '|' | first | link_to: link.url }}</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}

{% if settings.footer_column_2_title != blank %}
<div class="col-2 wow fadeInUp" data-wow-delay="{{ settings.time_lazy_load | times: 2 }}ms">
{% if settings.enable_multilang %}
<h3 class="lang1">{{ settings.footer_column_2_title | split: '|' | first }}</h3>
<h3 class="lang2">{{ settings.footer_column_2_title | split: '|' | last }}</h3>
{% else %}
<h3>{{ settings.footer_column_2_title | split: '|' | first }}</h3>
{% endif %}
<ul>
{% assign footerCol2 = settings.footer_column_2_title | handleize %}
{% for link in linklists.[footerCol2].links %}
{% if settings.enable_multilang %}
<li class="lang1">{{ link.title | split: '|' | first | link_to: link.url }}</li>
<li class="lang2">{{ link.title | split: '|' | last | link_to: link.url }}</li>
{% else %}
<li>{{ link.title | split: '|' | first | link_to: link.url }}</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}
{% if settings.footer_column_3_title != blank %}
<div class="col-3 wow fadeInUp" data-wow-delay="{{ settings.time_lazy_load | times: 3 }}ms">
{% if settings.enable_multilang %}
<h3 class="lang1">{{ settings.footer_column_3_title | split: '|' | first }}</h3>
<h3 class="lang2">{{ settings.footer_column_3_title | split: '|' | last }}</h3>
{% else %}
<h3>{{ settings.footer_column_3_title | split: '|' | first }}</h3>
{% endif %}
<ul>
{% assign footerCol3 = settings.footer_column_3_title | handleize %}
{% for link in linklists.[footerCol3].links %}
{% if settings.enable_multilang %}
<li class="lang1">{{ link.title | split: '|' | first | link_to: link.url }}</li>
<li class="lang2">{{ link.title | split: '|' | last | link_to: link.url }}</li>
{% else %}
<li>{{ link.title | split: '|' | first | link_to: link.url }}</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}
<div class="col-4 wow fadeInUp last" data-wow-delay="{{ settings.time_lazy_load | times: 4 }}ms">
{% if settings.enable_multilang %}
<h3 class="lang1">{{ settings.footer_column_4_title | split: '|' | first }}</h3>
<h3 class="lang2">{{ settings.footer_column_4_title | split: '|' | last }}</h3>
{% else %}
<h3>{{ settings.footer_column_4_title | split: '|' | first }}</h3>
{% endif %}
{% include 'social' %}
{% include 'homepage-block-newsletter' %}
</div>
</div>
</div>
<div class="footer-bottom wow fadeInUp" data-wow-delay="{{ settings.time_lazy_load | times: 5 }}ms">
{% if settings.display_footer_address and settings.footer_address_code != blank %}
{% if settings.enable_multilang %}
<address class="lang1">{{ settings.footer_address_code | split: '|' | first }}</address>
<address class="lang2">{{ settings.footer_address_code | split: '|' | last }}</address>
{% else %}
<address>{{ settings.footer_address_code | split: '|' | first }}</address>
{% endif %}
{% endif %}

{% comment %}
Loop through available payment methods and show their icons.
{% endcomment %}
{% include 'payment_methods' %}
</div>
</div>
</footer>
{% include 'message-modal' %}

 

0 Likes

Success.

Shopify Expert
9811 92 1561

Next time dump you code into a code block - makes it easier to read. That's the button that looks like </> in the editor.

 

As for the error lines I can see you've got this:

{% for link in linklists.[footerCol1].links %}

It probably works but really should be this when using dot notation:

{% for link in linklists[footerCol1].links %}

(note the lack of dot before the square bracket)

 

Make that change to those three lines and see if it makes any difference to the output/error.

If it doesn't, you'll now need to look into what the actual value of the variables (footerCol2, etc). Perhaps something is unexpected is in there.

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
New Member
4 0 0

Hi  Jason,

 

Awesome , error is gone. Thank you so much.

0 Likes
New Member
4 0 0

Hi,

 

Just a note,

I still have 2 or my footer column missing (column 1 & column 3), or maybe i should ask how can i add them the only one showing.

pls refer to image.columns.png

0 Likes
New Member
1 0 0

Hi,

I got same error but error is gone now. I am facing problem in adding menu items in the footer. Your information column is showing list items how did you add that? Can you please help.issuenewtheme.PNG

 

Below is the navigation menu for footer. I have added menu items but they dont appear in footer. Am I missing something? Please help thanks

issue 4.PNG

0 Likes