Tennis

Import the Tennis 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 Tennis 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.

Blocks this design adds

Tennis News

canvas-core/tennis-news

Display the latest club news posts as cards with their picture, date, headline and summary. In the block inserter it is named Canvas Tennis News.

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

The Tennis News settings in the block editor sidebar

Query

  • PostsDefault6

    How many of the latest posts to show.

  • Category SlugDefaultEmpty

    Only posts in this category. Leave empty for every post.

  • Leave Out the Post Being ViewedDefaultOn

    On a post page, list the other posts only.

Display

  • Grid ClassesDefaultrow g-4

    Class names on the row holding the cards.

  • Column ClassesDefaultcol-lg-4 col-md-6

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

  • Post Classes on ColumnsDefaultOn

    Add WordPress's own per-post classes (post id, type, status) to each column.

  • Image SizeDefaultLarge

    Which generated size of the featured image the card loads.

    ChoicesMedium LargeLargeFull

  • Date IconDefaultuil uil-calendar-alt

    Icon in front of the post date. Leave empty for none.

  • Date FormatDefaultj F Y

    PHP date format of the date line.

  • Headline Link ClassesDefaulttext-reset

    Class names on the headline link. The default keeps the headline in the card title colour.

  • Summary Length (words)Default26

    Used when a post has no excerpt of its own. 0 hides the summary.

  • Summary Inline StyleDefaultfont-size: 0.875rem; color: var(--color-muted); line-height: 1.7; margin-bottom: 1rem;

    Styling on the summary paragraph.

  • Read More TextDefaultRead More

    Wording of the link under each card. Leave empty to hide it.

  • Read More IconDefaultuil uil-arrow-right

    Icon after the read-more text. Leave empty for none.

Tennis Tournaments

canvas-core/tennis-tournaments

Display the club tournaments as dated calendar rows, or one part of a tournament page (its row, the other tournaments, its heading, its details). In the block inserter it is named Canvas Tennis Tournaments.

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

The Tennis Tournaments settings in the block editor sidebar

Layout

  • LayoutDefaultTournament Rows

    Which part of the tournaments design this block draws. Tournament Rows lists them; each "Single Tournament" choice renders one part of the tournament page you place it on.

    ChoicesTournament RowsSingle Tournament - Its RowSingle Tournament - Other TournamentsSingle Tournament - HeadingSingle Tournament - Details Board

Query

  • Event Category SlugDefaulttournaments

    Only events in this category are listed. Leave empty to list every event.

  • ShowDefaultAll Tournaments

    Upcoming keeps every tournament that has not finished yet. Rows are always in date order.

    ChoicesAll TournamentsUpcoming OnlyPast Only

  • ItemsDefault0

    0 shows every tournament. The other-tournaments rows show 3 when this is 0.

Display

  • Row ClassesDefaulttournament-entry

    Class names on each tournament row.

  • Details Icon Spacing ClassesDefaultme-1

    Classes added to the glyph in front of each details line.

  • Show the Register LinkDefaultOn

    Add a link to the tournament's own page at the end of each row.

  • Register Link TextDefaultRegister

    Wording of the link at the end of each row.

    Shown when Show the Register Link is on

  • Register Link IconDefaultuil uil-arrow-right

    Icon after the link text. Leave empty for none.

    Shown when Show the Register Link is on

  • Register Icon Inline StyleDefaultfont-size: 0.75rem;

    Styling on the icon after the link text.

    Shown when Show the Register Link is on

  • EyebrowDefaultCompete

    Small line above the tournament name on its page.

    Shown when Layout is "Single Tournament - Heading"

  • Tournament Name Inline StyleDefaultfont-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--color-text); line-height: 1.2; max-width: 620px; margin: 0 auto;

    Styling on the tournament name at the top of its page.

    Shown when Layout is "Single Tournament - Heading"

  • Details Board TitleDefaultTournament Details

    Heading of the details board.

    Shown when Layout is "Single Tournament - Details Board"

  • Details Board IconDefaultfa-solid fa-trophy

    Icon in front of the board title and on each of its rows.

    Shown when Layout is "Single Tournament - Details Board"

  • Dates LabelDefaultDates

    Shown when Layout is "Single Tournament - Details Board"

  • Details LabelDefaultWho Can Enter

    Shown when Layout is "Single Tournament - Details Board"

  • Format LabelDefaultFormat

    Shown when Layout is "Single Tournament - Details Board"

  • Entry Fee LabelDefaultEntry Fee

    Shown when Layout is "Single Tournament - Details Board"

  • Entries Close LabelDefaultEntries Close

    Shown when Layout is "Single Tournament - Details Board"

Was this page helpful?