Roots_Navbar_Nav_Walker doesnt show custom css classes
Hi, I've been trying to assign a custom css class to menu (via CSS Classes (optional) in the admin area).
Not working wp_nav_menu(array('theme_location' => 'menuname', 'walker' => new Roots_Navbar_Nav_Walker(), 'menu_class' => 'nav'));
Working wp_nav_menu(array('theme_location' => 'menuname', 'walker' => new Walker_Nav_Menu(), 'menu_class' => 'nav'));
Is it possible? I'm using the latest roots version.
Thanks a lot
Regards :)
hmm, thought i fixed this with 9cc8f62d3ebfa059c240058523149fa1476033e9. will look into it soon, thx for the issue
thx ben :)
working over here, you sure you have that commit i referenced above?
yep, I've downloaded it right now (just in case) but nothing, there's not the custom class.... current settings are
url label external link class
:)
ahh, custom class items themselves in the WP admin (which need to be enabled via the screen options). will check it out again
i thought you meant the menu_class set on wp_nav_menu :)
ok thx :)
Ive tried adding a class to one of the links in my menu and the class is not being applied.
Regards, Darren
I'm also having the same issue. I'm trying to add a Bootstrap horizontal divider to my dropdown menu.
Thanks!
It would be lovely to be able to use the horizontal divider.
Same issue experienced. I'd like to use this to add btn classes to my drop-down menus
"It would be lovely to be able to use the horizontal divider."
Try adding this to your bootstrap css.. or other css file: (Replace the image with your own divider)
.navbar .nav > li { background: url("../img/menu_sep.png") no-repeat scroll 100% 50% transparent; display: block; float: left; }
fixed with d4ec36331bb98baf52b9d522ee4498e55617cc61
Thanks Ben :) your a champion !! appreciate your on-going support :)
For those who are trying this be sure to add the "!important" statement to your css class in your app.css or bootstrap file.. here's what i mean:
.nav_aff_link a { color: #E5E516 !important; }