--- title: Top Bar description: The new top bar is a simpler wrapper around our flexible menu components. video: cxPwwixHEJg sass: ./scss/components/_top-bar.scss flex: true ---
Navigation is one the most crucial part of your site. Be a navigation guru with our Foundation online webinar training. You’ll learn techniques for creating responsive navigations that work with any type of site. In addition to that you can learn tips and tricks and best practices for all of Foundation’s components.
Find out more about Foundation training classes →The features of Foundation 5's top bar are still around, but they've been reworked into smaller, individual plugins. Check out our page on responsive navigation to learn more.
To set up a Responsive menu with toggle click trigger on mobile, first give your menu a unique ID. Next, add a title bar with the class .title-bar
and the attribute data-responsive-toggle
. The value of data-responsive-toggle
should be the ID of the menu you're toggling. Lastly, add data-toggle
to the element that will trigger the toggle. The value of data-toggle
should also be the ID of the menu you're toggling.
By default, the title bar will be visible on small screens, and the Menu hides. At the medium breakpoint, the title bar disappears, and the menu is always visible. This breakpoint can be changed with the data-hide-for
attribute in HTML, or the hideFor
setting in JavaScript.