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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.