Crossfit

Import the Crossfit 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 Crossfit 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

Classes

canvas_cf_class

One item is called a Class. 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:

  • Class Duration

  • Class Intensity

Workouts

canvas_cf_wod

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

  • Editor features: editor, excerpt, title

Each item carries these extra settings on its edit screen:

  • Wod Cap

  • Wod Category

  • Wod Estimate

  • Wod Format

  • Wod Movements

  • Wod Results

  • Wod Rounds

  • Wod Scaling

Blocks this design adds

CrossFit Classes

canvas-core/cf-classes

Display the box classes as photo cards, or one part of a class page (its card, the other classes, its heading, its duration and intensity). In the block inserter it is named Canvas CrossFit Classes.

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

The CrossFit Classes settings in the block editor sidebar

Layout

  • LayoutDefaultClass Cards

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

    ChoicesClass CardsSingle Class - Its CardSingle Class - Other ClassesSingle Class - Heading and SummarySingle Class - Duration and Intensity

Query

  • ItemsDefault0

    0 shows every class. The other-classes row shows 2 when this is 0.

  • Order ByDefaultMenu Order

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

    ChoicesMenu OrderDateTitle

  • OrderDefaultAscending

    Which end of that sequence comes first.

    ChoicesAscendingDescending

Display

  • Grid ClassesDefaultrow g-3

    Class names on the row holding the cards.

  • Column ClassesDefaultcol-lg-6 col-12

    Class names on the column around each card, which sets how many cards share a row.

  • Show the Class LinkDefaultOn

    Add a link to the class's own page under each card.

  • Link TextDefaultLearn More →

    Wording of the link under each card.

    Shown when Show the Class Link is on

  • Duration IconDefaultbi-clock

    Icon beside the class length.

  • Intensity IconDefaultbi-fire

    Icon repeated to show how hard the class is.

  • Intensity ScaleDefault5

    How many icons make up the scale. The class's own rating is lit and the rest are dimmed.

  • Lit Icon Inline StyleDefaultcolor: var(--cnvs-themecolor);

    Styling on the icons that count towards the rating.

  • Dimmed Icon Inline StyleDefaultcolor: rgba(255,255,255,0.18);

    Styling on the rest of the scale.

  • EyebrowDefaultOur Classes

    Small line above the class name on its page.

    Shown when Layout is "Single Class - Heading and Summary"

  • Class Name Inline StyleDefaultfont-size: clamp(1.75rem, 8vw, 2.75rem);

    Styling on the class name. The default scales it down on phones so a long name stays on screen.

    Shown when Layout is "Single Class - Heading and Summary"

  • Summary Inline StyleDefaultcolor: rgba(255,255,255,0.45); font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;

    Styling on the summary under the class name.

    Shown when Layout is "Single Class - Heading and Summary"

  • Details Inline StyleDefaultcolor: rgba(255,255,255,0.55);

    Styling on the length and intensity list.

    Shown when Layout is "Single Class - Duration and Intensity"

  • Duration LabelDefaultSession Length

    Label in front of the class length.

    Shown when Layout is "Single Class - Duration and Intensity"

  • Intensity LabelDefaultIntensity

    Label in front of the intensity icons.

    Shown when Layout is "Single Class - Duration and Intensity"

CrossFit Workout

canvas-core/cf-wod

Display one part of a workout of the day (its date, the workout itself or its whiteboard results), or the archive of every workout. In the block inserter it is named Canvas CrossFit Workout.

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

The CrossFit Workout settings in the block editor sidebar

Layout

  • LayoutDefaultWorkout

    Which part of the workout design this block draws. On a workout's own page it shows that workout; anywhere else it shows the latest one.

    ChoicesWorkout DateWorkoutWhiteboard ResultsWorkout Archive

Query

  • ItemsDefault0

    How many workouts the archive lists, newest first. 0 lists them all.

    Shown when Layout is "Workout Archive"

Display

  • Date FormatDefaultl, F j, Y

    How the workout day is written, in PHP date format.

  • Date IconDefaultbi-calendar3

    Icon in front of the workout day.

    Shown when Layout is "Workout Date"

  • Column ClassesDefaultcol-lg-6

    Class names on the column holding the workout.

    Shown when Layout is "Workout"

  • Workout Name Element

    Make the workout name the page heading on the workout's own page.

    Shown when Layout is "Workout"

  • Rounds Line Inline StyleDefaultcolor: rgba(var(--cnvs-themecolor-rgb), 0.65);

    Styling on the rounds line under the workout name.

    Shown when Layout is "Workout"

  • Load Note Inline StyleDefaultcolor: rgba(245,240,232,0.45); font-weight: 500; font-size: 0.875rem;

    Styling on the bracketed load after a movement, such as (53 / 35 lb).

    Shown when Layout is "Workout"

  • Movement MarkerDefault-

    Character in front of each movement.

    Shown when Layout is "Workout"

  • Scaling LabelDefaultScaling Options

    Heading over the scaling buttons.

    Shown when Layout is "Workout"

  • Time Cap LabelDefaultTime Cap

    Label over the time cap.

    Shown when Layout is "Workout"

  • Expected Time LabelDefaultEst. Time

    Label over the expected finishing time.

    Shown when Layout is "Workout"

  • Category LabelDefaultCategory

    Label over the workout category.

  • Time UnitDefaultmin

    Word after the time cap and the expected time.

    Shown when Layout is "Workout"

  • Results Column HeadingsDefault#, Athlete, Time, Rx

    The four results column headings, comma separated: position, athlete, time, scaling.

    Shown when Layout is "Whiteboard Results"

  • First Column Inline StyleDefaultwidth: 56px;

    Styling on the first column heading, which sets the column width.

    Shown when Layout is "Whiteboard Results"

  • Archive Column HeadingsDefaultDate, Workout, Format, Category

    The four archive column headings, comma separated.

    Shown when Layout is "Workout Archive"

  • Date Column Inline StyleDefaultEmpty

    Styling on the date column heading, which can set the column width.

    Shown when Layout is "Workout Archive"

  • Category Column ClassesDefaultd-none d-md-table-cell

    Classes on the category column. The default hides it on phones, where four columns do not fit.

    Shown when Layout is "Workout Archive"

Was this page helpful?