I'm trying to make WordPress theme with the materialize framework but I'm really confused by the navbar part. I've searched on the internet but found nothing, it seems nobody works with materialize.
The only thing that I have found is to make it with nav_walker, like it is done in bootstrap but I don't know how to do it with materialize.
Here is my navbar code;
<div class="navbar"> <nav> <div class="nav-wrapper"> <a href="<?php bloginfo('url'); ?>" class="brand-logo"><?php bloginfo('title'); ?></a> <a href="#" data-activates="mobile-demo" class="button-collapse"><i class="mdi-navigation-menu"></i></a> <?php wp_nav_menu( array( 'theme_location' => 'top-menu', 'items_wrap' => '<ul class="right hide-on-med-and-down">%3$s</ul>' ) ); ?> <?php wp_nav_menu( array( 'theme_location' => 'top-menu', 'items_wrap' => '<ul class="side-nav" id="mobile-demo">%3$s</ul>' ) ); ?> </div> </nav> </div>
PS: now would show menu but has these issues:
- drop-down menu not works.
- menu items are not linked.
- when try to make drop-down menu in wp-admin after save again items jump's out of parent items!.
- after create menu all notes will be clear!