Hi there,
i try to build a wp theme from a webflow export. Please have a look at: msh-dev.webflow.io
I tried to assign the “Nav menu Element” (wp_nav_menu) to the nav-tag in my code with smart walker. This is how the php looks:
<?php
PG_Smart_Walker_Nav_Menu::$options['template'] = '<a class="navigation-link w-nav-link {CLASSES}" id="{ID}" {ATTRS}>{TITLE}</a>';
PG_Smart_Walker_Nav_Menu::$options['current_class'] = 'w-current';
wp_nav_menu( array(
'menu' => 'test',
'container' => '',
'items_wrap' => '<nav class="navigation-menu w-nav-menu %2$s" role="navigation" id="%1$s">%3$s</nav>',
'walker' => new PG_Smart_Walker_Nav_Menu()
) ); ?>
<!-- Functions.php section Include Resources -->
require_once "inc/wp_smart_navwalker.php";
But: This immediately broke my page. Someone any idea?