Header Menu disappearing/not saving/too many menu items
September 22, 2015 at 09:57 #32929ChrisParticipant
Last night one of my teachers added another menu item to our top menu and then clicked save. After it was done loading a couple of problems popped up. WordPress cuts off every menu item after the 90th item. I do know that the number of menu items we have exceeds the normal max that WordPress allows. We had this problem fixed in the past, so maybe something randomly reset.
The other problem that popped up is every time we save changes to our menu, it unchecks it from being our themes header menu. Each time I click the save button on the bottom of the edit menus page, it unchecks the theme location: header box. Now I can go to the manage locations tab and set it as the header menu again and it saves correctly, however as soon as I make a menu change and save again, WordPress forgets my choice.
Now I think these two problems are related. I can delete one menu item so that our total menu items sits at 89 and the theme header box stays checked, but as soon as I add that 90th item my problems come back.
So my ultimate question, how do you get WordPress to allow more menu items? As a PK-12 school we need every menu item that we had. Thanks for your help in advance!September 22, 2015 at 10:02 #32930
Excellent question. There is a helpful post at http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-custom-menu-items-limit-in-wordpress/ that can walk you through the issues behind this. Large menus take a lot of resources to save and it’s likely that the server is running out of those resources before finishing. You may need to use the locations tab in the menus screen to set the theme location where the menu is assigned. I don’t know for sure, but that may bypass using the checkbox at the bottom of the menu since that’s giving trouble with the large menu.
See if some of WP Beginner’s options won’t help you out. If you can’t get your server to do those things, then it may be necessary to break the menu up into smaller menus so they don’t have so many items in any individual one.
Let me know how it goes,
BillSeptember 22, 2015 at 10:07 #32931
Let me throw one other option out for you. Since you have such a large menu, you would likely benefit from a different menu system than WordPress native one. You could use a mega menu plugin like Uber Menu (http://wpmegamenu.com — I’ve used this and it works well) or Max Mega Menu (https://wordpress.org/plugins/megamenu/).
One thing that both of these will do is allow you to use widgets inside a menu. You could then use WordPress’ custom menu widget to display a separate navigation menu inside the main menu.
If I was setting a menu up that way, I would make a new menu for the top level items. Then separate menus for the sub-menus under each of the top. That way you can add these distinct menus in via widgets. That would break everything into smaller chunks that should hopefully help WordPress save and display it correctly.
BillSeptember 22, 2015 at 11:01 #32932ChrisParticipant
It turns out that http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-custom-menu-items-limit-in-wordpress/ was spot on. I called our hosting service and was able to clear the problem up in about five minutes. Thank you again for your help!September 22, 2015 at 11:07 #32933
Splendid. Let me know if I can help with anything else 🙂
- The topic ‘Header Menu disappearing/not saving/too many menu items’ is closed to new replies.