Materalizecss Navigation with WordPress
-
I’m using materializecss for my framework and hitting a problem when it comes to WordPress’ Navigation. WordPress keeps the navigation in the header.php file:
<div class="row"> <nav class="right"> <div class="nav-wrapper"> <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); // Display the user-defined menu in Appearance > Menus ?> </div> </nav> </div>The problem for me arises when I try to apply this logic from materializecss:
<nav> <div class="nav-wrapper"> <a href="#" class="brand-logo">Logo</a> <ul id="nav-mobile" class="right hide-on-med-and-down"> <li><a href="sass.html">Sass</a></li> <li><a href="badges.html">Components</a></li> <li><a href="collapsible.html">JavaScript</a></li> </ul> </div> </nav>When I was using foundation, to get the features to work I had to use a type of walker class, I don’t understand walkers, I just followed the tutorial I found for getting foundation and it’s navigation to work. Now I just want to modify wordpress ul with classes from materializecss but I’m not exactly sure how to do that in wordpress since there doesn’t seem to be a place where I can directly modify the ul class of wordpress’ navigation?
The topic ‘Materalizecss Navigation with WordPress’ is closed to new replies.