Post by ViiDoo » Mon Dec 10, 2018 11:48 pm

Hello to all!
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 %}

Newbie

Posts

Joined
Mon Dec 10, 2018 11:42 pm
Who is online

Users browsing this forum: No registered users and 296 guests