I have about 80 main categories (not sub-categories) in custom menu, how I can show them in 4 columns? Code of my common/menu.twig is
Code: Select all
{% if categories %}
<a id="main-dd-nav" class="dropdown-trigger text-uppercase {{ color_navigation_text }}" rel="nofollow" data-target="dropdown-nav-top">{{ text_category }}</a>
<ul id="dropdown-nav-top" class="dropdown-content z-depth-1000" itemscope itemtype="http://www.schema.org/SiteNavigationElement">
{% for category in categories %}
<li><a class="waves-effect" href="{{ category.href }}" itemprop="url"><span itemprop="name">{{ category.name }}</span></a></li>
<li class="divider"></li>
{% endfor %}
</ul>
{% endif %}