Extending Walker_Nav_Menu in wp_nav_menu List of Empty Items

The answer was that the theme location is primary_navigation with an underscore, not primary-navigation with a hyphen. I’m not sure why it seemed to work without the walker argument. Typical and along the lines of what it seemed like must be the solution. The obvious thing I wasn’t seeing because of feeling overwhelmed by an … Read more

I lost the link to my posts in my menu bar

I’d check/adjust the Menu (under Appearance, Menu; also usually within Appearance, Customize). Create a menu if not already there. Then add a “Custom Link” to the menu. The URL is your home page, the Link Text is something like “Home”. Drag that menu item to the spot on the menu (the vertical list of all … Read more

Sub-Items Not Visible in Navigation

I assume that you didn’t change the theme to something else, then change it back to the original theme? In any case, look at Appearance, Menu to see if your menu is set up as you wish it to be. Then check to ensure that the menu is selected to be used by your theme.

Nav menus Fast previewing not working with wp_get_nav_menu_items!

You must use wp_nav_menu() if you want to get selective refresh (fast previewing). If you want to have a custom nav menu that uses selective refresh, then instead of manually iterating over wp_get_nav_menu_items() you instead need to subclass the Walker_Nav_Menu to implement your custom logic, and then pass it into wp_nav_menu() like this: wp_nav_menu( array( … Read more

Active menu item state on all menu items

Have you tried deactivating Bem_Menu_Walker to see if that resolves the problem? I would suggest removing the plugin and instead either adjusting your CSS or adding class names through menu management. (Each menu item allows you to add a class, if that’s all you need to achieve.) Or, create your own custom walker. Since these … Read more

Active Current Menu – Adding class to child theme

The default menu in WordPress already adds classnames for the current menu item, and if its a submenu, the parent will have a classname too as current-parent: li.current-menu-item{ //here your CSS for the current menu item } li.current_page_parent{ //here your CSS for parent menu item of the current menu item }