Webflow sync, pageviews & more.
NEW

How can I fix an issue where the menu is not present on my Webflow site when published, even though it works fine in preview mode? I've tried rebuilding the interactions, removing custom code, and rebuilding the menu, but nothing seems to work. Can you please help me?

TL;DR
  • Check for initial states or interactions that hide the menu on page load and temporarily disable them to test.
  • Open the site in incognito mode or clear your cache to rule out browser caching issues.
  • Remove all custom code from both page and project settings to eliminate script conflicts and check the browser console for errors.
  • Ensure the menu has a high z-index, correct visibility settings, and that the navbar component or menu button triggers display properly.
  • Republish to both webflow.io and custom domains to ensure updates are live, and investigate any overlapping styles or hidden elements that may obscure the menu.

If your menu works in Webflow preview but disappears or fails when published, it’s likely related to page load behavior, publishing issues, or display settings that behave differently in the published environment.

1. Check Page Load and Initial States

  • Go to your page interactions and confirm whether elements in your menu (like the nav bar or menu wrapper) are set to Display: none or have opacity 0 on page load.
  • If you're using Webflow Interactions, check for any Initial States that might hide the menu or its children unintentionally.
  • Remove any initial states temporarily and republish to test.

2. Test in Incognito and Clear Cache

  • Sometimes, old or cached versions of the site interfere with the live version.
  • Open your published site in an incognito window, or clear your browser cache and try again.
  • You can also try publishing to the webflow.io domain and compare that result to your custom domain.

3. Disable Custom Code Temporarily Again

  • You mentioned removing custom code, but ensure it's fully removed from both the Page Settings and Project Settings (especially in the Before tag section).
  • Make sure that no JavaScript errors are showing in the browser console (Right-click → Inspect → Console tab).

4. Verify Z-Index and Visibility Settings

  • Check that your nav element or menu wrapper has a sufficiently high z-index to stay above other content.
  • Ensure the menu elements are not set to Display: none by default in the Style panel unless explicitly shown by an interaction.
  • If using Webflow's Navbar component, verify that Show/Hide Menu is set up correctly in the navbar settings.

5. Recheck Menu Button Interactions

  • Review your menu button (hamburger icon) and any interactions that should open the menu.
  • Ensure it has a click/tap trigger that correctly targets the menu element.
  • Use triggers like Click → Show/Hide or Click → Toggle Visibility if not using the built-in Navbar component.

6. Confirm Publish Status

  • After making changes, ensure you're clicking Publish to both webflow.io and any connected custom domains.
  • Sometimes changes aren’t visible if only one domain is updated.

7. Check for Conflicting Styles or Scripts

  • Review the Navigator panel and Style panel for overlapping elements or styles like overflow: hidden or position: absolute that might obscure your menu.
  • If you had added pinned elements via interactions or accidental zero height containers, they may visually "block" or hide the menu.

Summary

The issue is most likely due to initial display settings, custom interactions, or CSS conflicts. Start by checking initial states on page load, visibility settings, and trigger interactions. Publish to Webflow’s default domain to debug easily, and use incognito mode to bypass caching.

Rate this answer

Other Webflow Questions