fix: suppression duplication liste des pages

This commit is contained in:
Kazhnuz 2023-05-03 12:35:56 +02:00
parent 97c606dd67
commit 77851a677b

View file

@ -33,13 +33,6 @@
</nav>
<ul class="f-end d-none d-flex-sm">
<?php
$listmenu = get_nav_menu_locations();
$menu = wp_get_nav_menu_items($listmenu['top-navbar-2']);
foreach ($menu as $menuElement) {
echo '<li><a href="' . $menuElement->url . '" class="menu-item">'. $menuElement->title . '</a></li>';
}
?>
<li class="f-column f-center"><?php include(TEMPLATEPATH . '/components/searchform.php'); ?></li>
</ul>
</div>