Show Menu on This CSS Selector
Place the menu on exact CSS selectors in your theme.
With Show menu on this CSS selector, you tell the app exactly which element(s) of your theme to fill with the menu, using CSS selectors. The app places your Globo menu inside every element that matches, replacing its content.
Use this method when Automatically replace and Replace existing menu don't work (custom or heavily edited themes), or when you want the menu somewhere specific β or only on desktop or only on mobile.
Steps to Set Up
Enter the selectors
CSS selector of your main menu β the element of your desktop menu, for example
#SiteNav,.header__inline-menuornav.main-menu.CSS selector of your mobile menu β the element of your mobile menu, for example
#AccessibleNavor.menu-drawer.
Not sure what to enter? See How to Find a CSS Selector below, or click How to find CSS selector of your menu? under the fields.
π‘ Tips
Several selectors: separate them with commas, e.g.
.header__inline-menu, .sticky-header nav. The menu is placed in every matching element.Desktop only: fill in the main menu selector and leave the mobile selector empty. Your theme's own mobile menu stays as it is.
Mobile only: leave the main menu selector empty and fill in the mobile one.
One element for both: if your theme uses the same element for desktop and mobile, enter the same selector in both fields. The app switches that element between the desktop and mobile layout based on screen size.
Pick the container, not a single link. The selector should match the element that wraps the whole menu (usually a
<nav>or<ul>), otherwise the menu ends up inside one item.Prefer stable selectors (IDs or theme class names like
.header__inline-menu) over long auto-generated ones likebody > div:nth-child(3) > β¦, which break when the theme changes.
π How to Find a CSS Selector
Want the menu in a spot where the theme has no menu at all? Add your own empty container to the theme code β see Modify Menu Position (Advanced).
Related Articles
Modify Menu Position (Advanced)Can I Show Different Menus on Desktop and Mobile?The Menu Doesn't Show (or Shows Incorrectly)π¬ Need help?
Email us at π§ contact@globo.io - weβre happy to assist!
Last updated
Was this helpful?
