Tag Info

New answers tagged

0

I think the wholee problem is your trying to use the default walker, but by declaring it in the walker field your telling wordpress your trying to load a custom walker, the wp walker is loaded by default if left empty. two options: 1/ change 'walker' => new Walker_Nav_Menu() to 'walker' => '' as its called by default. 2/ edit declaration to a new name ...


0

You could either extend the Walker_Nav_Menu walker class (i.e., the start_el function is sufficient, as already mentioned). Or you could hook in when the original output (i.e., the category) has been created. That would be the walker_nav_menu_start_el hook. For instance like so: function wpdev_139801_start_el( $item_output, $item ) { if ( isset( ...


2

The question is unclear but wp_nav_menu() has a couple of arguments that will allow you to add classes to the output. For example... wp_nav_menu( array( 'container_class' => 'conclass', 'menu_class' => 'menclass' ) ); You can alter those arguments using the wp_nav_menu_args filter as well. However, I suspect that when you say "class" ...



Top 50 recent answers are included