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
  • Add a custom media query in Project Settings to target a specific pixel width (e.g., 1150px) for the nav menu.
  • Write custom CSS in the project's Custom Code section to display the hamburger menu at this width.
  • Insert the CSS code in the Head tag of Project Settings for site-wide effect, or in Page Settings for a specific page.
  • Publish the site and test to ensure the nav menu appears correctly at the desired width.

To adjust the tablet breakpoint and alter the appearance of your nav menu (hamburger menu) at an earlier width than the default 992px, you'll need to use a custom solution. Webflow doesn't directly allow for changing or adding breakpoints in the GUI, but custom code can achieve the desired effect.

1. Use Media Queries in Custom Code

  • Add a custom media query in the Project Settings under the Custom Code section. This can force the hamburger menu to appear at a custom width.
  • Use a CSS media query to target the desired pixel width (e.g., 1150px).

2. Write Custom CSS

  • Write custom CSS to display the hamburger menu at the specified width.
<style>
  @media screen and (max-width: 1150px) {
    .w-nav-button {
      display: block;
    }
    .w-nav-menu {
      display: none;
    }
  }
</style>

3. Add Custom Code to your Webflow Project

  • Go to Project Settings > Custom Code.
  • Insert the CSS code in the Head tag section to ensure it applies site-wide.
  • Alternatively, add it directly in the Page Settings if the change should only apply to a specific page.

4. Publish and Test

  • Publish the site to apply changes.
  • Test the behavior of the nav menu by resizing your browser and ensuring that the hamburger menu appears as expected at 1150px.

Summary

To customize the breakpoint for your nav menu, use a media query in custom CSS to make it display at an earlier width. By modifying the Custom Code settings in Webflow, you can achieve the desired behavior for your website design.

Rate this answer

Other Webflow Questions