Skip to content

Display methods ​

Open the Publish tab in the builder to set Menu display method. The menu appears on the storefront only when the Mega Menu Pro app embed is on and the method is not Unpublish.

Before you begin ​

  • Save your menu content.
  • Enable the Mega Menu Pro app embed. See Quick start.
  • On Home, confirm App embed shows Active.

Options appear in this order in the Publish tab:

MethodWhen to use
UnpublishHide the mega menu from the storefront (your theme’s default menu can show instead)
Replace existing menu from Navigation settingReplace a menu from Shopify Online Store → Navigation
Replace menu by entering current menu ID/ClassTarget a specific desktop/mobile menu element by CSS ID or class (#… or .…)
Display menu anywhere using embedded codePlace the menu with the Mega Menu theme block or the embed snippet
AutomationLet the app detect and replace common theme menu selectors when supported

Menu display method radio options

Choosing a method updates store visibility. If the method needs extra fields (Navigation menu, ID/class, or embed), configure those fields, then click Save.

Unpublish ​

Select Unpublish when you want the mega menu hidden while you keep working in the builder. Choose another method when you are ready to publish.

Replace existing menu from Navigation setting ​

  1. Select Replace existing menu from Navigation setting.
  2. Under Menu to replace, choose the Shopify navigation menu to replace.
  3. Click Save.

Replace existing menu from Navigation setting

If your storefront is password-protected and menus cannot be loaded, disable the password temporarily, reload the app, then try again.

Replace menu by entering current menu ID/Class ​

  1. Select Replace menu by entering current menu ID/Class.
  2. Fill Enter ID/class of custom menu for desktop (include # for an ID or . for a class).
  3. Fill Enter ID/class of custom menu for mobile if your theme uses a separate mobile menu.
  4. Click Save.

Enter menu ID or class for desktop and mobile

Inspect your theme header in the browser to find the correct selectors.

Display menu anywhere using embedded code ​

Use this method when you want the mega menu in a specific theme area (header, a page template, and so on) instead of replacing an existing Navigation menu.

  1. Select Display menu anywhere using embedded code.
  2. Either:
    • Click Add section to open the theme editor and add the Mega Menu app block, or
    • Copy the embed snippet and paste it into a Custom Liquid section or a .liquid file.
  3. Click Save in the theme editor and in Mega Menu Pro if needed.

Default embed snippet (current app):

html
<div class="va_mm_embeddedcode"></div>

Embedded code and Add section

Always use the snippet shown in the app. Older installs may still have <div class="ets_mm_embeddedcode"></div>; the storefront upgrades that class automatically, but prefer regenerating or replacing with va_mm_embeddedcode.

For placement details, see Theme block.

Automation ​

  1. Open Publish.
  2. Select Automation.
  3. Refresh the storefront and confirm the header menu is replaced.

Automation targets common theme selectors (for example #AccessibleNav, #MobileNav, [role="navigation"]). If it does not match your theme, try replacing by Navigation menu or by ID/class.

After you publish ​

  1. Open the storefront and confirm the menu.
  2. On Home, the Publish your menu setup step should show as done when a non-unpublish method is active.

To hide the menu again, set Menu display method to Unpublish.

If this does not work as expected, Contact for help.