• I’m looking for a reference to menu structure and dynamic menu operation in wordpress. Something that would explain typical markup used, typical JS used to control dynamic behavior, so I can more deeply understand what’s going on and how to modify it.

    I should also ask: is the markup and styling used for WordPress menus very different in different themes? Or are there some basic principles that all themes use?

Viewing 1 replies (of 1 total)
  • Themes may implement their own variation of menus but the core of menus is handled wp_nav_menu() which utilizes the Walker Class. This is a base implementation that themes or plugins could extend upon to add their own JS/CSS to handle things like dropdown menus or animations.

    I think this CSS Tricks article by Scott Fennell gives a good rundown of both the general function and extending it using a custom walker.

Viewing 1 replies (of 1 total)
  • The topic ‘Reference to WordPress menus’ is closed to new replies.