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:
Query
PostsDefault
6How 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 ClassesDefault
row g-4Class names on the row holding the cards.
Column ClassesDefault
col-lg-4 col-md-6Class 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 IconDefault
uil uil-calendar-altIcon in front of the post date. Leave empty for none.
Date FormatDefault
j F YPHP date format of the date line.
Headline Link ClassesDefault
text-resetClass names on the headline link. The default keeps the headline in the card title colour.
Summary Length (words)Default
26Used when a post has no excerpt of its own. 0 hides the summary.
Summary Inline StyleDefault
font-size: 0.875rem; color: var(--color-muted); line-height: 1.7; margin-bottom: 1rem;Styling on the summary paragraph.
Read More TextDefault
Read MoreWording of the link under each card. Leave empty to hide it.
Read More IconDefault
uil uil-arrow-rightIcon 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:
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 SlugDefault
tournamentsOnly 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
ItemsDefault
00 shows every tournament. The other-tournaments rows show 3 when this is 0.
Display
Row ClassesDefault
tournament-entryClass names on each tournament row.
Details Icon Spacing ClassesDefault
me-1Classes 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 TextDefault
RegisterWording of the link at the end of each row.
Shown when Show the Register Link is on
Register Link IconDefault
uil uil-arrow-rightIcon after the link text. Leave empty for none.
Shown when Show the Register Link is on
Register Icon Inline StyleDefault
font-size: 0.75rem;Styling on the icon after the link text.
Shown when Show the Register Link is on
EyebrowDefault
CompeteSmall line above the tournament name on its page.
Shown when Layout is "Single Tournament - Heading"
Tournament Name Inline StyleDefault
font-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 TitleDefault
Tournament DetailsHeading of the details board.
Shown when Layout is "Single Tournament - Details Board"
Details Board IconDefault
fa-solid fa-trophyIcon in front of the board title and on each of its rows.
Shown when Layout is "Single Tournament - Details Board"
Dates LabelDefault
DatesShown when Layout is "Single Tournament - Details Board"
Details LabelDefault
Who Can EnterShown when Layout is "Single Tournament - Details Board"
Format LabelDefault
FormatShown when Layout is "Single Tournament - Details Board"
Entry Fee LabelDefault
Entry FeeShown when Layout is "Single Tournament - Details Board"
Entries Close LabelDefault
Entries CloseShown when Layout is "Single Tournament - Details Board"


