Custom CSS
The Design tab covers most looks: colours, fonts, spacing, borders, animation. When you need something it doesn’t offer — a special hover, a hidden element, a theme-specific fix — add your own CSS. It’s saved with the menu and applies to that menu only.
Add CSS to a menu
Section titled “Add CSS to a menu”-
Open the menu in the editor and click the Settings pane (the gear, third of the three icons above the tree).
-
Click Custom CSS.
-
Write your CSS and click Save.
-
Open the menu in the editor and go to Settings (the gear icon in the editor’s icon bar).
-
Click Custom CSS.
-
Write your CSS and click Save.
The CSS loads together with the menu, on your storefront. Right-click a menu item on your store and choose Inspect to find the class names you can target; the menu’s own start with h2m-, for example:
| Class | What it is |
|---|---|
.h2m-menu-nav |
The menu bar |
.h2m-main-menu-item |
One item of the menu bar |
.h2m-menu-item-inner |
The link of an item |
.h2m-menu-title |
The text of an item |
Custom class on an item
Section titled “Custom class on an item”Every item also has a Custom class field in its options. Whatever you type is added to the item’s classes, so you can style just that one:
.sale-link .h2m-menu-title { color: #d72c0d;}(with sale-link entered as the item’s custom class).
When your theme’s CSS gets in the way
Section titled “When your theme’s CSS gets in the way”Some themes style every list and link in the header, which changes the menu’s spacing, fonts or colours. In Settings of the app, turn on Theme CSS conflicts to stop the theme’s CSS from reaching the menu — see Settings. Your own custom CSS still applies on top of it.
Move CSS to another store
Section titled “Move CSS to another store”Custom CSS is part of the menu file. When you import a menu, tick Override custom CSS to bring it along. Only do that if the other store uses the same theme, since selectors written for one theme rarely suit another.
