For the complete documentation index, see llms.txt. This page is also available as Markdown.

Modify Menu Position (Advanced)

Place the menu exactly where you want by adding containers to your theme code.

If your theme has no menu element in the place where you want the Globo menu — or its header is too custom for the other position methods — you can add your own empty container to the theme code and tell the app to show the menu there with Show menu on this CSS selector.

Steps to Set Up

1

Open the theme code

Go to Online Store > Themes, click … on the theme and choose Edit code.

2

Add the menu containers

Paste an empty placeholder where each menu should render. You can use any ID you like — these are just examples:

<div id="GloboDesktopMenu"></div>
<div id="GloboMobileMenu"></div>

Where to put them depends on your theme. Usually:

  • Desktop: in the header section file (for example sections/header.liquid), where the navigation should be.

  • Mobile: inside the menu drawer file of your theme, or in layout/theme.liquid.

Click Save in the code editor.

The app fills each container with the menu — anything already inside it is replaced. Your theme's original menu is not removed automatically; hide or remove it in the code (or via theme settings) if you don't want both.

3

Point the app at the containers

In the app, open the menu editor > Settings tab (⚙️) > Position > Show menu on this CSS selector and enter:

  • CSS selector of your main menu: #GloboDesktopMenu

  • CSS selector of your mobile menu: #GloboMobileMenu

CSS selector fields
Enter your container IDs in the two CSS selector fields

Only need one layout? Add a single container and leave the other field empty.

4

Save, publish and check

Click Save, then Publish, and check your storefront on desktop and mobile.

⚠️ Good to Know

  • Code edits only apply to the theme you edited. If you switch or update your theme, add the containers again.

  • Put the containers in code that is always rendered. If the mobile menu doesn't appear because your theme builds its drawer later with JavaScript, move the mobile container somewhere that's always in the page, such as layout/theme.liquid.

  • Nothing shows? Make sure the app embed is on for this theme, and check in your browser console that document.querySelector('#GloboDesktopMenu') finds your container.


Show Menu on This CSS SelectorPublish New Menu to ThemeCustom CSS

💬 Need help?

Email us at 📧 contact@globo.io - we’re happy to assist!

Last updated

Was this helpful?