The main menu on my site contains about 30 items, and I am no longer able to save it. This seems to be a fairly common problem with bigger menus in Wordpress. I am on a dedicated server with very generous settings for PHP memory and execution time, but past a certain size, I just can't get menus to save.
So, I need an alternative to Wordpress's built-in menu system. I want to keep the setup as flexible and quick to edit as possible. I can edit a flat file if need be, but the easier the better.
Idea #1
Copy the menu's HTML into a static template file and replace calls to wp_nav_menu()
with get_template_part('my_menu_file')
.
Problem
I don't know how I would add current-menu-item
class to the current menu item. I could live without the other utility CSS classes added by wp_nav_menu
, but current-menu-item
is pretty important.
Idea #2
Since the menu is hierarchical, I could create one menu for the top-level items and separate menus for each dropdown, and then use a plugin like UberMenu to attach the submenus to their top-level items.
Problem
I would have to do a lot of tweaking and retrofitting to get the plugin-generated menu to look identical to the current menu.
Are there other approaches or solutions that would make sense here?
max_input_time
,max_input_vars
ormax_input_nesting_level
) need to be adjusted. – chrisguitarguy Jan 4 '13 at 21:37max_input_vars
andmax_input_nesting_level
? – supertrue Jan 4 '13 at 21:40