Joy
(@joyously)
I didn’t do any new searches for you, but I had a bookmark for https://generatewp.com/ which focuses on the PHP portion. It’s not what you want at all, I’m afraid. The PHP portion is very minimal.
I use http://www.cssplay.co.uk/menus/ for ideas about the CSS portion. You have to adjust the CSS for WordPress’ standard menu walker, unless you supply a different walker. Also, the standard walkers generate slightly different classes for a Page menu (which is the standard fallback) and a custom menu created by the user.
Bootstrap has a walker that is used in many themes, but I don’t recommend it.
My own theme’s menu is CSS only, but most themes have some javascript to handle mobile and accessibility concerns.
The menu is the tricky part of a theme, and they are all different. You’d be better off copying the menu from a theme that you like (or a plugin, where it’s already separate).
Hello Joy,
Yeah, yeah, I know all that. But thanks for replying anyway (misery loves company). It’s rather amazing that there’s no straightforward answer for this question.
And I didn’t know anything about the Bootstrap option so thanks for commenting on it. I see many people seem to be using it for menus in WordPress but I’m wanting to use CSS Grid instead of Bootstrap so I wouldn’t want the Bootstrap dependency just for the nav menu.
There are various cute little web pages online about how to create a wordpress menu with responsive capability but so many of them are single-level-only on mobile – it’s annoying!
Thanks again!!
Patrick