Cafe

Import the Cafe design and it brings blocks and content types of its own, on top of the main Canvas library. Read this page when you are working on a site built from Cafe and meet a block you cannot find in the main reference.

These items stay registered on every site so that content you have already imported keeps rendering, and they appear in the block inserter only where the design is in use.

Content types this design adds

canvas_cafe_menu

One item is called a Menu Item. You will find them in their own admin menu once the design is installed.

  • Editor features: custom-fields, editor, excerpt, page-attributes, thumbnail, title
  • Grouped by: Menu Categories (canvas_cafe_menu_cat)

Each item carries these extra settings on its edit screen:

  • Dietary

  • Origin

  • Menu Price

  • Served

Blocks this design adds

Cafe Menu

canvas-core/cafe-menu

Display dishes and drinks from the Cafe Menu post type as printed-menu lines or photo cards, or render a single dish page (price, attributes, CTA, related dishes). In the block inserter it is named Canvas Cafe Menu.

Select the block on a page and its own settings open in the sidebar, in the panels below:

The Cafe Menu settings in the block editor sidebar

Layout

  • LayoutDefaultMenu Lines

    Which part of the design this block draws: printed menu lines, a grid of photo cards, or one of the three pieces that build a single dish page. The single pieces render nothing anywhere else.

    ChoicesMenu LinesPhoto CardsSingle Dish - Price & DetailsSingle Dish - CTASingle Dish - Back + Related

Query

  • Menu CategoryDefaultEmpty

    Category slug to show (one block per menu section). Empty shows every dish.

  • ItemsDefault0

    0 shows all dishes in the category.

  • Order ByDefaultMenu Order

    What decides the sequence dishes appear in: the order you arranged them in, when each was published, or the dish name.

    ChoicesMenu OrderDateTitle

  • OrderDefaultAscending

    Whether that sequence runs forwards or backwards. With Order By set to Title, Descending lists from Z to A.

    ChoicesAscendingDescending

Display

  • ColumnsDefault3 Columns

    How many photo cards sit side by side on a wide screen. Narrower screens step down on their own, and the menu lines layout ignores it.

    Choices2 Columns3 Columns4 Columns

  • Link Menu LinesDefaultOff

    Link each menu line to its dish page.

    Shown when Layout is "Menu Lines"

  • Cards Wrapper ClassesDefaultcafe-menu-grid row

    Classes on the photo-cards grid wrapper.

  • Menu Page SlugDefaultmenu

    Slug of the full menu page. The single layouts resolve it to a portable permalink for the category eyebrow and the "Back to Menu" button. Empty = no link.

  • CTA Page SlugDefaultEmpty

    Slug of the page the CTA button links to. Resolved to a portable permalink so the link is correct on any install / import. Empty = no button.

  • CTA AnchorDefaultEmpty

    Optional in-page anchor appended to the CTA link, e.g. #section-contact.

  • CTA Button TextDefaultReserve a Table

    Wording on the booking button at the foot of a dish page. Leave it empty and no button appears.

  • Back Button TextDefaultBack to Menu

    Wording on the button that returns a visitor from a dish page to the full menu. Leave it empty and no button appears.

  • Related HeadingDefaultYou may also like

    Heading above the row of other dishes at the foot of a dish page. Leave it empty to show them with no heading.

Was this page helpful?