Menu

Content blocks

Menu

A navigation menu of links (with a mobile-friendly layout).

Options#

  • Menu items: label, Action Type (Open Website, Send Email, Call Phone Number) and Target, per item
  • Layout: horizontal / vertical, and a separate Layout for phones
  • Font, Link Color, Text Color, spacing between items
  • Item Padding, the same on all sides or per side (More Options)
  • Separator character
  • A menu with no items is left out of the email

Layout and spacing

In the design JSON the Menu block's type is navigation. Links sit on one line by default; layout: "vertical" puts one link on each line. spacing (default 20) is the gap between links, split half on each side. A separator string is drawn between links only in the horizontal layout, in text_color (or color).

Menus imported from Unlayer use item_padding_x and item_padding_y instead: every link and separator is padded, and spacing is not used. item_padding_top, item_padding_right, item_padding_bottom and item_padding_left set one side (Item Padding, More Options in the panel).

Items

Each item is { label, href, target, link_type }. link_type is website, email (a mailto: href) or phone (a tel: href); target (_blank or _self) is per item and falls back to the menu's target. An item without a link is plain text in text_color, the menu's Text Color, which also colours the separator. color is the Link Color. On the Mobile tab, Layout sets mobile_styles["nav-layout"] to horizontal or vertical for phones only.

Defaults

A new menu has three items (Home, Products, Contact), align: "center", color: "#14213d", font_size: 14, font_weight: "600" and target: "_blank".

Links and phones

Each item's href can hold a merge tag, and pre-send QA flags menu links that still point at a placeholder or empty URL. Below the mobile breakpoint, spaced links get an 8px right margin and no left margin.