Therapy
Import the Therapy 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 Therapy 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
Treatments
canvas_therapy_treat
One item is called a Treatment. You will find them in their own admin menu once the design is installed.
- Editor features: editor, excerpt, page-attributes, thumbnail, title
- There is a listing page for all items.
- Grouped by: Treatment Categories (
canvas_therapy_treat_cat)
Each item carries these extra settings on its edit screen:
Session Length
Extended Session Length
Price
Extended Session Price
Blocks this design adds
Therapy Treatments
canvas-core/therapy-treatments
A priced list or card grid of treatments, queried live from the Treatments post type. In the block inserter it is named Canvas Therapy Treatments.
Select the block on a page and its own settings open in the sidebar, in the panels below:
Settings
LayoutDefaultPriced List
Which part of the treatments design this block draws. The first two list several treatments; each "Single" choice renders one section of the treatment page you place it on.
ChoicesPriced ListCard GridSingle: DetailsSingle: Booking ButtonSingle: Related Treatments
Category SlugDefaultEmpty
Show only treatments in this category. Leave empty for every treatment.
Exclude Category SlugDefaultEmpty
Hide this category, so a list of every treatment can leave out one that has a page of its own.
ItemsDefault
0Maximum treatments to show. 0 shows them all.
Order ByDefaultManual Order
What decides the sequence of the treatments. Manual Order follows the arrangement you set on the treatments list screen.
ChoicesManual OrderTitleDate
OrderDefaultAscending
Which end of that sequence comes first.
ChoicesAscendingDescending
Currency SymbolDefault
$Character printed before each price.
Duration SuffixDefault
Mins:Printed after each session length, e.g. "Mins:" gives "60 Mins:".
Item Wrapper ClassesDefault
overflow-hiddenClass names on the box around each treatment in the priced list.
Item Row ClassesDefault
row align-items-centerClass names on the row that sets the picture beside the text.
Image Column ClassesDefault
col-3Class names on the picture column, which is what sets how much of the row width the picture takes.
Text Column ClassesDefault
col-9Class names on the text column. Its width should make up the rest of the row alongside the picture column.
Image ClassesDefault
roundedClass names on each picture, most often to round its corners.
Image SizeDefault
mediumWhich stored copy of the picture is served. Step it down when the pictures are small, to save the visitor a large download.
Title TagDefaultH4
Which heading level each treatment name uses, so the list sits correctly in the page outline.
ChoicesH2H3H4H5H6DIVSPAN
Title ClassesDefault
mb-2Class names on each treatment name, most often for the space under it.
Price Strip ClassesDefault
d-flex align-middle text-smallerClass names on the line holding the session lengths and their prices.
Duration Label ClassesDefault
op-04Class names on the session length, usually faded so the price stands out beside it.
Price ClassesDefault
font-primary ms-2Class names on each price, setting its typeface and the gap after the session length.
Price Separator IconDefault
bi-circle-fill text-smaller op-02 mx-3Icon classes for the dot between the two prices. Leave empty for no separator.
Divider ClassesDefault
line my-4The hairline drawn between items. Leave empty for no divider.
AnimationDefaultEmpty
Animation name applied to each item, e.g. "fadeInUpSmall faster". Leave empty for none.
Animation Delay Step (ms)Default
0Added per item after the first, so the list reveals in sequence.
Link Treatment NamesDefaultOff
Link each name to its own treatment page.
Card Grid Row ClassesDefault
row col-mb-50Class names on the row holding the cards, setting the space between them.
Card Grid Column ClassesDefault
col-lg-6Class names on each card column, which is what sets how many cards sit side by side.
Card ClassesDefault
card bg-color border-light h-100Class names on each card, setting its background, border and whether every card in a row matches height.
Card Body ClassesDefault
card-body p-4Class names on the inside of each card, setting its padding.
Card Description ClassesDefault
text-white-50 mb-3Class names on the description inside each card, setting its colour and the space under it.
Card Button TextDefault
Book This TreatmentWording on the button at the foot of each card.
Card Button ClassesDefault
btn rounded-0 btn-border color size-smClass names that set the look of the card button.
Card Button Page SlugDefaultEmpty
Page the card button links to. Leave empty to link to the treatment itself.
Landing Page SlugDefaultEmpty
The treatments listing page, used by the single view's category link and Back button.
Related HeadingDefault
You may also enjoyTitle above the row of other treatments. Leave empty to show the row with no title.
Back Button TextDefault
All TreatmentsWording on the button returning the reader to the treatments listing. Leave empty for no button.
CTA Button TextDefault
Book This TreatmentWording on the booking button. Leave empty for no button.
CTA Page SlugDefaultEmpty
Page the single view's booking button links to.
Related ItemsDefault
3How many other treatments appear under the one being read. Set 0 to leave the related row out.

