Mega Menu Walker

I’m trying to create a mega menu walker. Unfortunately, walkers completely escape my coding knowledge. I could really use some help getting it working. Here’s the features I need: Wrap the second-level <ul> in <section>. [COMPLETE] When a user sets the class “break” on an <li> in the second level <ul>, make that <li> the … Read more

Error “Trying to get property of non-object” with Custom Walker for wp_nav_menu

I am trying to add some ARIA related stuff to the wp_nav_menu function. I use a custom walker class for this purpose: class Walker_Nav_Menu_With_Aria extends Walker_Nav_Menu { function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat(“\t”, $depth); $output .= “\n$indent<ul class=\”sub-menu\” role=\”group\”>\n”; } function end_lvl( &$output, $depth = 0, $args … Read more