7. Menus and Navigation
Before menus, dynamic navigation wasn’t fun. You’d typically list pages, then categories, and rely on their hierarchies and status to dictate the menus and the existence of nav items. It wasn’t easy to create custom navigation.
Today you can simply drag and drop nav items as you see fit. As a theme developer, you can define menu locations so the user admin can create menus and define where they will exist in the website. You can also customize the HTML that’s output when your menu is called in the theme. Effective use of menus in your theme will benefit the user admin greatly and make for a better product.
What you’re about to learn
• How menus and WordPress navigations function
• How to register menus
• Best practices ...
Get Web Designer’s Guide to WordPress: Plan, Theme, Build, Launch now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.