Skip to content

Theme block ​

Use the Mega Menu app block when you choose Display menu anywhere using embedded code, or when you want to place the menu in a specific theme section.

Mega Menu Pro is the app embed name (under App embeds). Mega Menu is the theme section / app block name.

Before you begin ​

  • Enable the Mega Menu Pro app embed.
  • In Publish, select Display menu anywhere using embedded code.
  • Save if you changed embed-related fields.

Add the Mega Menu block ​

  1. In the builder Publish tab, click Add section (opens the theme editor), or go to Online Store → Themes → Customize.
  2. Open the template where the menu should appear (often the header group).
  3. Click Add section (or Add block, depending on the theme area).
  4. Under Apps, select Mega Menu.
  5. Place the section where you want the menu, then Save.

The block renders a <div class="va_mm_embeddedcode"> placeholder. It has no extra settings in the theme editor — create and customize menus in the Mega Menu Pro app.

Add Mega Menu app block in theme editor

Mega Menu block in header

On Home, Active app blocks shows how many Mega Menu blocks are on the main theme.

Paste the embed snippet instead ​

If you prefer code:

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

Paste it into Custom Liquid or a theme .liquid file, then save. See Display methods.

Older themes may still contain <div class="ets_mm_embeddedcode"></div>. That still works, but replace it with va_mm_embeddedcode when you edit the theme.

Remove the block ​

  1. Open the theme editor.
  2. Select the Mega Menu section or block.
  3. Remove it, then Save.

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