How to use the custom walker function?
-
Hi there,
I want to replace the extra menu location I created with your shortcode.
The old code is as follows:
wp_nav_menu( array( ‘theme_location’ => ‘klant-header-menu’, ‘container_class’ => ‘zekerfz-header-menu’, ‘container_id’ => ‘zekerfz-klant-menu’ ) );
Now I want to replace it like this:
echo do_shortcode( ‘[responsive-menu menu=”klant-header-menu”]’ );
I guess that I have to use the custom walker function to make this working properly, as in the current state it doesn’t show the menu yet. Do you have some documentation on how I can use the custom walker function? I can’t find any on your site.
Also, I am going to create multiple menu’s like this, depending on whether folks are viewing certain pages or post categories. Your custom walker function seems to allow for only one set of parameters that work for all menu’s which is not ideal here.
Could you please advise on how to implement this menu properly?
Cheers!
- The topic ‘How to use the custom walker function?’ is closed to new replies.