CSS Classes (optional) not outputting to source
-
I am trying to set a different CSS class to each of my menu items but for some reason it is not outputting to source. I am using a paid theme (Jigsaw) but I have switched to the basic TwentyTen theme and again I cannot see any output of this optional CSS class on the menu.
In the header.php of my theme I find the following code
wp_nav_menu(array( 'theme_location' => 'primary_navigation', 'walker' => new roots_nav_walker(), 'menu_id' => 'topmenu', 'menu_class' => 'sf-menu' ));
but I can’t find what is wrong. In the advanced screen options the XFN gets passed onto the anchor tag, but I can’t understand why the optional CSS isn’t passed on to the list element. Since it is not working the basic WordPress theme either I guess i’ts not just an issue with the theme I am using either? Can someone please help? Has anyone else found the same problem?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘CSS Classes (optional) not outputting to source’ is closed to new replies.