1👍
✅
Replace this:
{% ifequal forloop.counter 17 %}
</ul>
</div>
<div class="{% if selected_menu_entries|replace_comma_with_linespace|wordcount > 18 %}col-md-4{% else %}col-md-6{% endif %} equal-height-in">
<ul class="list-unstyled equal-height-list">
{% endifequal %}
with:
{% ifequal forloop.counter 17 %}
{% if not forloop.last %}
</ul>
</div>
<div class="{% if selected_menu_entries|replace_comma_with_linespace|wordcount > 18 %}col-md-4{% else %}col-md-6{% endif %} equal-height-in">
<ul class="list-unstyled equal-height-list">
{% endif %}
{% endifequal %}
Source:stackexchange.com