Thoughts on other menu types?

1 Reply ·

  1. Hey Justin,

    Exhale looks great. Now, I’ll be that guy 🙂

    Have you given thought to alternative menu styles? Or have docs for an easy route to doing so? I think the default menu-collapse-and-scroll thing is cute but doesn’t work so well for longer menus.

    Just curious if you’ve already done the work for me or if I should dig into burgerifying it. Thanks!

  2. Justin Tadlock

    Sorry, I missed your question yesterday. Most things happen on the Slack chatroom nowadays (krogsgard is your account there if you’ve forgotten it). The forums are OK to use too.

    While Exhale is flexible in many regards, I wanted to be stricter when it came to how the menu worked and limit the user to a small number of items. A major part of this is that site visitors tend to struggle with many links.

    With a limited number of links, it gives you a chance to get hyper-focused and better direct the user to where you want them to go. This could be a product page, service page, or some special content that you want to drive traffic to.

    I believe that the vast majority of Web sites shouldn’t have more than 4-5 links. Anything more than that is just too many choices. Of course, there are outliers, but the goal is to build for the majority.

    Anyway, that’s a bit of the philosophy behind this.

    I haven’t built for other alternative menu systems at the moment, but you can pretty much do anything with a little code.

    You can overwrite the template via a /public/views/nav/menu/primary.php copied from the parent to a child theme.

    There’s also a few hooks. Core WP’s wp_nav_menu() has some. There are several hooks within the attributes system if you need to change the class or another attribute for the menu wrapper.

    Or, you may be able to accomplish your goals with CSS and/or JS.