I'm trying to add the ability to insert Custom CSS Classes to menu items. I believe I do this by extending the walker_nav_menu but I'm not sure how to call the custom classes.
This seems like such a simple question but I've googled and searched here and couldn't find anything for simply adding the custom classes.
Right now I just have:
<?php wp_nav_menu( array( 'theme_location' => 'top-menu', 'walker' => new future_walker_class() ) ); ?>
and
class future_walker_class extends Walker_Nav_Menu {
/*not sure what to put here*/
}
P.S. I'm fairly new to PHP/Wordpress. I tried to be as thorough as possible so I don't waste your time.
.item804
but in case I move them around (and there's quite a few of them) I want the css code to be easy to read and edit if needed.