Martial Arts

Import the Martial Arts 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 Martial Arts 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

Disciplines

canvas_ma_discipline

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

  • Editor features: editor, excerpt, page-attributes, thumbnail, title

Each item carries these extra settings on its edit screen:

  • Discipline Category

  • Discipline Highlight

  • Discipline Icon

Blocks this design adds

Martial Arts Disciplines

canvas-core/ma-disciplines

Display the academy disciplines as cards, or one part of a discipline page (its card, the other disciplines, its heading and lead, the booking buttons). In the block inserter it is named Canvas Martial Arts Disciplines.

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

The Martial Arts Disciplines settings in the block editor sidebar

Layout

  • LayoutDefaultDiscipline Cards

    Which part of the disciplines design this block draws. Discipline Cards lists them; each "Single Discipline" choice renders one part of the discipline page you place it on.

    ChoicesDiscipline CardsSingle Discipline - Its CardSingle Discipline - Other DisciplinesSingle Discipline - Heading and LeadSingle Discipline - Buttons

Query

  • ItemsDefault0

    0 shows every discipline. The other-disciplines row shows 3 when this is 0.

  • Order ByDefaultMenu Order

    What decides the sequence of the cards. Menu Order lets you arrange them by hand on the disciplines list screen.

    ChoicesMenu OrderDateTitle

  • OrderDefaultAscending

    Which end of that sequence comes first.

    ChoicesAscendingDescending

Display

  • Grid ClassesDefaultcf-disciplines-grid

    Class names on the element holding the cards, which sets the columns and the hairline between them.

  • Link Each CardDefaultOff

    Make each discipline name a link to that discipline's own page.

  • Reveal AnimationDefaultfadeInUp

    Entrance animation each card plays as it scrolls into view. Leave empty for none.

  • Reveal Delays (ms)Default0,100,200,100,200,300,0,100,200

    Comma-separated delay for each card in turn, so a row reveals in a ripple. 0 starts a card at once; the list repeats when there are more cards.

  • Second Tag Inline StyleDefaultmargin-inline-start:4px;

    Styling on the second tag of each card, which sets the gap after the first one.

  • Lead Inline StyleDefaultcolor:var(--cf-muted); font-size:0.95rem; line-height:1.7; margin-bottom:1.5rem;

    Styling on the summary under the discipline name.

  • Primary Button TextDefaultClaim Free Trial Class

    Wording on the free trial button. Leave empty for no button.

  • Primary Button SectionDefaulttrial

    Id of the front page section the free trial button opens.

  • Second Button TextDefaultView Class Schedule

    Wording on the outline button. Leave empty for no button.

  • Second Button SectionDefaultschedule

    Id of the front page section the outline button opens.

Was this page helpful?