Menu location switcher – example code fails

So, the code in the documentation assumes that the menu you’re trying to get is set as the primary menu. If the menu you’re trying to get isn’t the one set as primaryin Apperance -> Menus, this error will show. I suggest you try to work with their name or slug instead.

mysterious menu

If you are referring to the top admin menu with Customize, etc. Then normal users do not see that only users who are logged in. If you are logged in and do not with to see that, then click on the far top right of this menu, your user profile “Edit my profile”, and un-tick … Read more

Appearance –> Menu -not showing on my main page

Once you create the menu (in Appearence, Menu), you have to tell the theme to use that menu. That is usually in Appearance, Customize, which should then have a choice somewhere (depending on where the theme author put it) that you can specify a menu you built. Some theme’s Customization let you directly create/change/specify a … Read more

menu change after theme change

I am not sure this is the problem you are having, but often when you switch themes, or rename the theme folder, the menu assignment box get’s unchecked. If you go to Appearances -> Menu, select the menu that’s not working from the dropdown. After clicking on “Select” make sure that the checkbox under “Display … Read more