bu-ist / bu-navigation

Robust tools for managing hierarchical page content in WordPress. Ideal for blogs with large page counts.
https://developer.bu.edu/bu-navigation/
25 stars 7 forks source link

Modernize BU Navigation: Allow custom post types, customizer support, in primary navigation #57

Open ashleykolodziej opened 4 years ago

ashleykolodziej commented 4 years ago

Summary

As we rely more on custom post types to structure site content for our themes here at BU, we're also discovering that having the primary navigation tied to pages - and just pages - is a huge limiting factor in our ability to create easy to use websites. For example, we often create a Degree Programs post type. Not being able to have the degree program live in the navigation, among other pages, means we have to develop complicated workarounds to query those programs and show them in a "faux" navigation that just doesn't play nice with everything else. Wheelock is a good example of this.

Additionally, we lack support for the Customizer. The length and number of items in a primary navigation is key to a positive mobile experience. There is no preview in BU Navigation to help test this. Customizer support would allow site editors to preview their menu changes in real time, at different device widths, and react accordingly.

Why not just use WordPress menus?

There is a lot to love about WordPress menus. They come with Customizer support built-in, you can add just about anything you want to them, and they're super flexible. However, the primary navigation is special. There are some important UX principles to consider with this kind of menu that make me think it deserves a special BU Navigation treatment, whether we use WordPress menus as a new base or not.

Requirements

Add custom post type support

Add customizer support

Nice to haves

Questions

ashleykolodziej commented 4 years ago
Screen Shot 2020-08-28 at 3 35 37 PM

Need a hook toput the arrows inside each list item