How can I adjust the tablet breakpoint in Webflow to display the nav menu (hamburger menu) at an earlier pixel width, such as 1150px instead of the default 992px? Is there any custom code or integration that can help me achieve this?

TL;DR
  • Modify the hamburger menu breakpoint to 1150px using custom CSS in Webflow's Project Settings under the Custom Code tab.
  • Ensure correct class names and save, publish, and test changes across different browsers and devices.

Changing the breakpoint for the hamburger menu to appear at a different pixel width such as 1150px requires custom CSS, as Webflow default breakpoints do not allow direct modifications. Here’s how you can achieve this:

1. Open Project Settings

  • Go to your Webflow Dashboard and select the project where you want to make the change.
  • Click on Project Settings in the navigation bar.

2. Add Custom Code

  • Navigate to the Custom Code tab.
  • In the Head Code section, add the following CSS to adjust when the hamburger menu appears:

<style>
  @media (max-width: 1150px) {
    .w-nav-menu {
      display: none;
    }
    .w-nav-button {
      display: block;
    }
  }
  @media (min-width: 992px) and (max-width: 1150px) {
    .w-nav-button {
      display: none;
    }
    .w-nav-menu {
      display: flex;
    }
  }
</style>

3. Ensure Navbar Class Names Are Correct

  • Make sure you use the correct class names for your navbar elements in the CSS provided. The default classes in Webflow are .w-nav-menu for the menu and .w-nav-button for the hamburger icon.

4. Publish and Test

  • Save the changes by clicking the “Save” button at the bottom of the Custom Code section.
  • Publish your website to see the changes in effect at the 1150px breakpoint.
  • Test the functionality across different browsers and devices to ensure consistency.

Summary

To change the hamburger menu breakpoint to 1150px, add custom CSS to the Custom Code section in Webflow’s Project Settings. This custom CSS adjusts the display logic for your navigation menu and hamburger icon, ensuring they appear/disappear at the desired width. Always double-check class names and test thoroughly.

Rate this answer

Other Webflow Questions