Title: Using custom nav-walker
Last modified: May 25, 2024

---

# Using custom nav-walker

 *  [Alwyn Barry](https://wordpress.org/support/users/dramb/)
 * (@dramb)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/using-custom-nav-walker/)
 * Does your block allow use of a custom nav-walker class? I have a theme based 
   on w3.css with a nav-walker class to create w3.css based menus, and I am creating
   a w3.css block theme based on that theme. But I want the w3.css nav menu in it.
   But there is no doc on how to use nav-walker classes with the new block menu 
   nav. So I’m hoping I can customise your block or that your block provides customisation.

Viewing 1 replies (of 1 total)

 *  [Gabriel Harper](https://wordpress.org/support/users/tekime/)
 * (@tekime)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/using-custom-nav-walker/#post-18064079)
 * You would have to override the block render callback with register_block_type
   and implement your own version of render_block_classic_menu(). From there you
   can extend Walker_Nav_Menu with your own class and pass it into wp_nav_menu in
   your render callback.
 * Should all be doable from your theme though.
 * I got frustrated with the limited block navigation and have been implementing
   my own version of a classic menu block plugin with a custom walker and mobile
   menu support. You could probably accomplish most of what you’re looking for with
   the method I outlined above – I just went for a custom plugin so I could add 
   support for render templates with custom walkers in the theme and a separate 
   menu toggle block.

Viewing 1 replies (of 1 total)

The topic ‘Using custom nav-walker’ is closed to new replies.

 * ![](https://ps.w.org/classic-menu-block/assets/icon-256x256.png?rev=2668472)
 * [Classic Menu Block](https://wordpress.org/plugins/classic-menu-block/)
 * [Support Threads](https://wordpress.org/support/plugin/classic-menu-block/)
 * [Active Topics](https://wordpress.org/support/plugin/classic-menu-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/classic-menu-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/classic-menu-block/reviews/)

## Tags

 * [nav walker](https://wordpress.org/support/topic-tag/nav-walker/)

 * 1 reply
 * 2 participants
 * Last reply from: [Gabriel Harper](https://wordpress.org/support/users/tekime/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/using-custom-nav-walker/#post-18064079)
 * Status: not resolved