Skip to content

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.

Steps for the
  1. Open the menu in the editor and click the Settings pane (the gear, third of the three icons above the tree).

  2. Click Custom CSS.

    The new editor with the Settings pane (gear) and the Custom CSS button outlined in red
  3. Write your CSS and click Save.

  1. Open the menu in the editor and go to Settings (the gear icon in the editor’s icon bar).

  2. Click Custom CSS.

    The Settings pane of the classic editor, reached by the gear icon in the icon bar, with the Custom CSS button outlined in red
  3. Write your CSS and click Save.

The Custom CSS dialog with a media query that sets the menu bar text to 17px

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

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).

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.

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.